! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Wrong "week starts on ..." locale setting in orage
Status:
CLOSED: INVALID

Comments

Description VlK 2006-01-13 12:41:03 CET
When I run orage with LANG=cs_CZ or LC_ALL/LC_TIME set to "cs_CZ", it sets "week
starts on Sunday" instead on Monday, what should be in fact. Strange enough that
when using "en_US" ends up with week started on Monday, what is IMHO also wrong.

Reproducible: Always
Steps to Reproduce:
1. kill orage if it's running
2. export LC_ALL=cs_CZ
3. run orage
Actual Results:  
weeks in orage starts with Sunday(Nedele)

Expected Results:  
weeks in orage should start with Monday(Pondeli)

Newest Zenwalk packages are installed incl. GTK+2 2.8.9
Comment 1 juha editbugs 2006-01-13 16:14:02 CET
Tested with Gtk+ 2.4.13
Can not reproduce. Works correctly.
Can you show what 
locale -kc LC_TIME | grep first_weekday
and
locale -a | grep cs
gives.

What is your linux distro ?

I will test with never gtk+ later....
Comment 2 VlK 2006-01-14 23:04:00 CET
Hello again, I'm testing it on full new Zenwalk 2.0.1 distribution now (other
PC) and it still behaves strangely:

> Can you show what 
> locale -kc LC_TIME | grep first_weekday
> and
> locale -a | grep cs
> gives.

vlk[~]$ export LANG=cs_CZ
vlk[~]$ xfcalendar       
vlk[~]$ locale -kc LC_TIME | grep first_weekday
first_weekday=1
vlk[~]$ export LANG=                           
vlk[~]$ locale -kc LC_TIME | grep first_weekday
first_weekday=7
vlk[~]$ locale -a | grep cs
cs_CZ
cs_CZ.utf8

Important: when LANG is not set, week starts with SATURDAY(!), if set to cs_CZ,
it starts with Nedele (ie. Sunday equivalent). Both should be one day lter IMHO.

FYI: gtk+2 version: 2.8.7
I found other strange thing when I do locale -kc LC_TIME, I can see line:
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
So while still nonsense, it is consistent. Dates are otherwise OK.
Comment 3 juha editbugs 2006-01-16 22:34:25 CET
ok. I did some (actually a lot) more checking. And first of all this is a mess.

Secondly, I believe the problem is in your locale settings. 
And I mean that locale cs_CZ is wrong. It probably misses the definition of
first_weekday and then default value 1 is used.

Check:
locale week-1stday
and
locale first_weekday

The first one gives a starting date, for example with locale 

[juha:~]$ export LANG=fi_FI.UTF-8
[juha:~]$ locale week-1stday
19971130
[juha:~]$ locale first_weekday
2

Which means that we start counting from 30. November 1997, which is Sunday
and count 2-1=1 step forward, which brings us to first weekday = Monday.

another example:
[juha:~]$ export LANG=en_GB.UTF-8
[juha:~]$ locale week-1stday
19971130
[juha:~]$ locale first_weekday
1

Which gives Sunday.

Both these work correctly in orage, which actuallyuses what ever gtk+
gtk_calendar widget gives. Orage itself does not modify week starting day 
anymore after gtk+ 2.4.

This is very difficult. Try reading
man locale.gen
and check these bugs:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=80212
http://lists.debian.org/debian-glibc/2004/04/msg00341.html

I hope this helps, but I think this is not orage problem, but instead a setup
issue with your distro.
Comment 4 juha editbugs 2006-11-08 06:37:06 CET
*** Bug 2536 has been marked as a duplicate of this bug. ***
Comment 5 Brian J. Tarricone (not reading bugmail) 2007-01-26 18:58:45 CET
Moving all bugs to new Orage product.
Comment 6 juha editbugs 2009-06-22 06:06:09 CEST
*** Bug 5438 has been marked as a duplicate of this bug. ***

Bug #1328

Reported by:
VlK
Reported on: 2006-01-13
Last modified on: 2011-01-18
Duplicates (2):
  • 2536 First weekday issues
  • 5438 [Enhancement] please add an option to show week in calendar from specified day

People

CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information