GNOME Bugzilla – Bug 309478
GtkCalendar doesn't honor LC_TIME
Last modified: 2005-07-05 14:03:59 UTC
Hi, GtkCalendar doesn't honor the LC_TIME locale because of the evil week_start = _("calendar:week_start:0"); hack in gtkcalendar.c. This hacks relies on gettext to compute the first day of the week, but gettext relies on LANG. Why won't gtk rely on "nl_langinfo(_NL_TIME_FIRST_WEEKDAY);"? This was reported by Eric Lavarde in Debian bug <http://bugs.debian.org/313539>. Bye,
_NL_TIME_FIRST_WEEKDAY is not a standard interface. It stems from a rejected iso draft that will never become a standard. And its semantics are somewhat unclear. But nevertheless, GTK+ 2.8 will make use of this interface, if it is present, and fall back to the calendar:week_start:0 translation if it is not present. I don't see what qualifies the fallback as "evil", though.
It was more a hack than "evil" actually. (It was surprizing to shift the dependency for retrieving l10n information to the i18n system.) Thanks for fixing!