This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix LC_TIME


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]