Red Hat Bugzilla – Bug 56657
locale info (LC_TIME, week-1stday) may be wrong in some locales
Last modified: 2016-11-24 10:24:33 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120
Description of problem:
The glibc locale info for weeks is wrong in some locales, for example the
de_DE locale info is like this
And, although I haven't found a specification of what these fields mean,
there is a working document at
which defines a field week, which has scary similarities with week-ndays,
week-1stday and week-1stweek.
That document clearly states that the first entry in "day" should
correspond to the date given in week-1stday, but it doesn't, since 19971201
is a Monday, but Sonntag is Sunday in German.
Another example is what you get when you have C locale, then you get:
first_weekday is defined in the above document to be the day that should be
shown first by a week calendar. However 7 means Saturday, and the default
should be 1 (Sunday).
Finally, the sv_SE locale is wrong, since Sweden has been using ISO 8601
some time, and therefore should use Monday as first day of the week instead
Version-Release number of selected component (if applicable):
Steps to Reproduce:
env LC_TIME=C locale -k LC_TIME
env LC_TIME=de_DE locale -k LC_TIME
env LC_TIME=sv_SE locale -k LC_TIME
Also see bug #56513
I split the part about the sv_SE locale info into a bug report of its own, bug
The locale files have to contain the sdata always in the form which has the
translation for Sunday first. Regardless of what other documents say. All
locale files comply with this AFAIK. No bug.