From: hniksic Date: Mon, 27 Jun 2005 11:50:04 +0000 (-0700) Subject: [svn] Correctly query the old locale value. X-Git-Tag: v1.13~879 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=9468fba4f79a94e3e32f6c43d481607570a8e395 [svn] Correctly query the old locale value. --- 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++) {