[PATCH] Fix LC_TIME
Jakub Jelinek
jakub@redhat.com
Thu Nov 9 04:40:00 GMT 2000
Hi!
_NL_TIME_WEEK_1STWEEK is described as byte, so we cannot put word in there
because then we segfault. I have no idea about what that value means though,
so it is just the value from en_US, which might be wrong because unlike C
en_US uses 19971201 for _NL_TIME_WEEK_1STDAY.
2000-11-09 Jakub Jelinek <jakub@redhat.com>
* locale/C-time.c (_nl_C_LC_TIME): Fix value for
_NL_TIME_WEEK_1STWEEK.
--- libc/locale/C-time.c.jj Thu Nov 2 08:51:42 2000
+++ libc/locale/C-time.c Thu Nov 9 13:42:08 2000
@@ -135,7 +135,7 @@ const struct locale_data _nl_C_LC_TIME =
{ wstr: (const uint32_t *) L"" },
{ string: "\7" },
{ word: 19971130 },
- { word: 19971130 },
+ { string: "\4" },
{ string: "\7" },
{ string: "\1" },
{ string: "\1" },
Jakub
More information about the Libc-hacker
mailing list