mirror of
https://github.com/mirror/wget.git
synced 2025-02-07 18:20:14 +08:00
[svn] Correctly query the old locale value.
This commit is contained in:
parent
f3f6af70ea
commit
9468fba4f7
@ -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,
|
||||
|
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user