From 9468fba4f79a94e3e32f6c43d481607570a8e395 Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 27 Jun 2005 04:50:04 -0700 Subject: [PATCH] [svn] Correctly query the old locale value. --- src/ChangeLog | 4 ++++ src/http.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index bc1c04ee..c28eda4d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-06-27 Hrvoje Niksic + + * http.c (http_atotm): Correctly query the old locale value. + 2005-06-27 Hrvoje Niksic * config-post.h (alloca): Don't #define alloca under MinGW32, diff --git a/src/http.c b/src/http.c index 8a33a29b..5da3549c 100644 --- a/src/http.c +++ b/src/http.c @@ -2643,7 +2643,8 @@ http_atotm (const char *time_string) /* Solaris strptime fails to recognize English month names in non-English locales, which we work around by temporarily setting locale to C before invoking strptime. */ - oldlocale = setlocale (LC_TIME, "C"); + oldlocale = setlocale (LC_TIME, NULL); + setlocale (LC_TIME, "C"); for (i = 0; i < countof (time_formats); i++) {