After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 150567 - Ability Monday to be the first day of the week
Ability Monday to be the first day of the week
Status: RESOLVED DUPLICATE of bug 87977
Product: gnome-panel
Classification: Other
Component: clock
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-08-19 17:27 UTC by Ognyan Kulev
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Ognyan Kulev 2004-08-19 17:27:16 UTC
It would be good the Properties dialog to have checkbox whether Monday to be the
first day of the week instead of Sunday when showing calendar.  It's natural to
expect such option in any calendar.  In cal(1), this option is -m.
Comment 1 Vincent Untz 2004-08-19 20:55:15 UTC
What version of GNOME are you using?
It should be automatically set to the right thing according to your locale. I
think this was fixed in GTK+ 2.4
Comment 2 Ognyan Kulev 2004-08-20 05:43:56 UTC
I'm using Debian Sarge.  gnome-panel is 2.6.2-1.  libgtk2.0-0 is 2.4.3-3.  
/etc/environment contains:

LANG=bg_BG
LC_MESSAGES=C

Interestingly, cal(1) starts from Monday too, but month and week names are
translated.  That is, locale data is used.  I'm wondering if bg locale has wrong
information.  Do you know how can I test it?

And isn't 12/24 hour format part of the locale too?  If so, then why there is a
checkbox to control it?
Comment 3 Ognyan Kulev 2004-08-20 05:47:07 UTC
I meant that cal(1) starts from *Sunday* too.  Sorry.
Comment 4 Vincent Untz 2004-08-20 06:57:36 UTC
You probably need to set LC_TIME correctly too. Or maybe the bg locale is wrong.
Try this: 'locale -k -c LC_TIME' and look at first_weekday.

As for the 12/24 hour format: the problem here is that in some countries, people
use both formats. But there's already a bug about this (bug 102635).
Comment 5 Ognyan Kulev 2004-08-20 07:48:06 UTC
The result is:

first_weekday=2
first_workday=2

I guess this means that Monday is the first day of the week in Bulgaria, which
is correct.

I checked Single User Specification and there is mention of first_weekday,
neither the 12/24 time format:
http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap07.html#tag_07_03_05

I checked NetBSD implementation and there is no sign that these two are
implemented, at least in the manual page:
http://netbsd.gw.com/cgi-bin/man-cgi/man?nl_langinfo .  So these two options
(first_weekday and 12/24 time format) should be in Properties of clock applet in
case the underlying libc doesn't go beyound POSIX locale definitions.  And it's
best if they are tristates -- yes, no, get from locale (undefined?).
Comment 6 Vincent Untz 2004-10-29 11:01:02 UTC
GTK+ is not using nl_langinfo. In fact, the first day is set according through
translations (so if you're running with LANG=en, you'll have the "en first day").

See http://bugzilla.gnome.org/show_bug.cgi?id=87977#c25

*** This bug has been marked as a duplicate of 87977 ***