Bugzilla – Bug 130787
Calendar starts on Monday instead of Sunday
Last modified: 2006-11-09 18:36:21 UTC
This changed when I upgraded to the latest Gnome. Calendars in the US run Sun - Sat, not Mon-Sun. I already talked to you about this--just entering the defect.
The gtk calendar should be doing the right thing now (earlier bug on this), however the glibc locale data for en_US indicates a Monday start of the week.
Is this an upstream bug, or did this particular mishegoss come from a patch? I can't get to sources in autobuild currently.
The gtk2 part of this bug is here (with upstream number): https://bugzilla.novell.com/show_bug.cgi?id=104417 We are now into locale data issues because week-1stday=19971201 (monday) for en_US . (acutally its more complex than that, but its all in the other reports).
The question of whether yom hashvi'i (and its Latin equivalent) is Saturday or Sunday (a central issue in this debate) has less to do with locale and more to do with religion. Maybe a setting would make more sense.
Setting or not, defaulting the right way most of the time is a sane option. Assuming the locale data isn't a total mess.
This is a dupe right? Didn't kukuk reject this? We may just have to patch around this.
There is no simle way to work-around this. Every work-around will break other locales. For example Czech calendar should start by Monday, but starts by Sunday, German starts by Monday. The only possible work-around is to maintain Monday-starting and Sunday-starting locales list in gtk+ and don't believe to glibc at all. See bug 104417 for more. And see http://bugzilla.gnome.org/show_bug.cgi?id=314473 for upstream gtk+ fix. As far as reviewers say, gtk+ is now OK. The problem is in localedata. Maybe we should review localedata to conform new specification, if glibc team won't do it.
Created attachment 69818 [details] gtk2-130787-calendar-week-start.diff Better patch to handle all posible week-1stday numbers.
See also http://sources.redhat.com/bugzilla/show_bug.cgi?id=2388
gtk2 in 10.1 was just modified to not believe glibc localedata. Better patch for gtk+ is not applied, because this part of code will not be used in 10.1. I hope that upstream will adopt it. When bug 104417 will be fixed, current gtk2 hack can be removed and gtk2 will use _NL_TIME_FIRST_WEEKDAY.
Reopening. Problem occurs again in SuSE Linux 10.2. Upstream bug is postponed, it needs much input from natives of many countries. We need to re-enable the work-around from the comment #10.
Interesting, the work-around is still here and after update of some packages from FACTORY it works again for me.