+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,
/* 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++)
{