mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Doc fix.
This commit is contained in:
parent
2e625afe68
commit
247387fef5
13
src/http.c
13
src/http.c
@ -2651,13 +2651,12 @@ http_atotm (const char *time_string)
|
|||||||
to prevent garbage from the stack influencing strptime. */
|
to prevent garbage from the stack influencing strptime. */
|
||||||
xzero (t);
|
xzero (t);
|
||||||
|
|
||||||
/* Note that Solaris strptime fails to recognize English month
|
/* Solaris strptime fails to recognize English month names in
|
||||||
names under non-English locales. We work around this by not
|
non-English locales, which we work around by not setting the
|
||||||
setting the LC_TIME category. Another way would be to
|
LC_TIME category. Another way would be to temporarily set
|
||||||
temporarily set locale to C before invoking strptime, but
|
locale to C before invoking strptime, but that's slow and
|
||||||
that's slow and messy. GNU strptime does not have this
|
messy. GNU strptime does not have this problem because it
|
||||||
problem because it recognizes English names along with the
|
recognizes English month names along with the local ones. */
|
||||||
local ones. */
|
|
||||||
|
|
||||||
if (check_end (strptime (time_string, time_formats[i], &t)))
|
if (check_end (strptime (time_string, time_formats[i], &t)))
|
||||||
return mktime_from_utc (&t);
|
return mktime_from_utc (&t);
|
||||||
|
Loading…
Reference in New Issue
Block a user