orage first weekday

Yves-Alexis Perez corsac at debian.org
Wed Sep 16 11:45:55 CEST 2009


Juha a écrit :
> Yes, I agree the problem probably is in your distro's locale,
> but it is a little bit more complex than what Yves-Alexis said.
> 
> 
> Check also
> 
> locale week-1stday
> 
> And find out which weekday that is. (cal mm yyyy)
> It gives you the starting day for counting.
> 
> Since your locale first_weekday is 2, you need to step 1 (=2-1)
> step forward from the day you got from locale week-1stday.
> (using the list locale day
> Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday )
> 
> (Common error is that maintainers set week-1stday to be Monday,
> which in this case would make the real week starting day Tuesday.)
> 
> 
> for example in my system:
> LANG=en_GB.utf8 locale first_weekday day week-1stday
> 1
> Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday
> 19971201
> Gives first weekday Monday.
> 
> and
> LANG=en_US.utf8 locale first_weekday day week-1stday
> 1
> Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday
> 19971130
> Gives first weekday Sunday.
> 

Wow, I didn't know things were that complex. For general knowledge,
upstream bug report is at
http://sources.redhat.com/bugzilla/show_bug.cgi?id=7068

There's some explanation
http://blogs.gnome.org/patrys/2008/09/29/how-to-determine-the-first-day-of-week/
too.

-- 
Yves-Alexis



More information about the Xfce mailing list