Red Hat Bugzilla – Bug 169770
glibc no longer gives correct locale info.
Last modified: 2007-11-30 17:11:14 EST
Description of problem:
glibc no longer gives a correct answer to some locale calls.
int main(int argc, char** argv)
printf("First weekday: %d\n", (int)nl_langinfo(_NL_TIME_FIRST_WEEKDAY));
printf("Week first day: %d\n", nl_langinfo(_NL_TIME_WEEK_1STDAY));
[drzeus@poseidon]$ LC_TIME=sv_SE ./langtest
First weekday: 7
Week first day: 19971130
[drzeus@poseidon]$ grep weekday /usr/share/i18n/locales/sv_SE
Version-Release number of selected component (if applicable):
This bug is causing problems here since it throws off calculation of week
numbers in every application.
False alarm. My code misses a setlocale(LC_ALL, ""); so it will of course not work.
The problem must be in GTK+ since it is gtk-based programs that are misbehaving
(calander widget most notably). I'll continue digging. Sorry for the noise.