[svn] Correctly query the old locale value.

This commit is contained in:
hniksic 2005-06-27 04:50:04 -07:00
parent f3f6af70ea
commit 9468fba4f7
2 changed files with 6 additions and 1 deletions

View 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,

View 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++)
{