]> sjero.net Git - wget/commitdiff
[svn] Correctly query the old locale value.
authorhniksic <devnull@localhost>
Mon, 27 Jun 2005 11:50:04 +0000 (04:50 -0700)
committerhniksic <devnull@localhost>
Mon, 27 Jun 2005 11:50:04 +0000 (04:50 -0700)
src/ChangeLog
src/http.c

index bc1c04ee010e89584332d4c40e7a6a5cf6b06511..c28eda4da8a813ee271968de121aa855982dd8d8 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * http.c (http_atotm): Correctly query the old locale value.
+
 2005-06-27  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * config-post.h (alloca): Don't #define alloca under MinGW32,
index 8a33a29b149b9a0137d2e49343d3c4955bc8c309..5da3549c66edcdafc46dcfa9a55d5036fed16bdc 100644 (file)
@@ -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++)
     {