[rrd-users] First day of week (again...)
Antony Dovgal
antony.dovgal at gmail.com
Mon Oct 1 14:15:12 CEST 2012
Hello Daniel, Toby and all.
I can confirm that the problem does exist and this patch does indeed fix it.
In order to demonstrate the problem get the code here:
http://pasky.or.cz/dev/glibc/first_weekday.c, compile it and run like this:
# LC_ALL="en_GB.UTF-8" ./first_weekday
[en_GB.UTF-8] week_1stday 0, first_weekday 2, english[first] Mon,
days[first] Monday, strftime[first] Monday
# LC_ALL="en_US.UTF-8" ./first_weekday
[en_US.UTF-8] week_1stday 0, first_weekday 1, english[first] Sun,
days[first] Sunday, strftime[first] Sunday
As you can see, nl_langinfo(_NL_TIME_FIRST_WEEKDAY) returns the correct
value, while nl_langinfo(_NL_TIME_WEEK_1STDAY) for some reason always
returns Sunday, which is clearly wrong.
Diff against 1.4.7 is available here:
https://build.opensuse.org/package/view_file?file=rrdtool-first_weekday.patch&package=rrdtool&project=home%3Atony2001%3Abranches%3Adevel%3Alanguages%3Apython&rev=28d69172fce89776aa29af383a39981d
Wbr,
Antony Dovgal
--
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/First-day-of-week-again-tp7580447p7580504.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
More information about the rrd-users
mailing list