GNOME Bugzilla – Bug 655960
GDateTime formatting should honor LC_TIME instead of LC_MESSAGES for translations
Last modified: 2011-09-05 02:46:11 UTC
Created attachment 193242 [details] Test program Attached source file highlights the problem: $ cc `pkg-config --libs --cflags glib-2.0` foo.c -o foo $ echo $LC_TIME pt_PT.UTF-8 $ ./foo Thursday, August $ LC_MESSAGES=pt_PT.UTF-8 ./foo 5ª Feira, Agosto
Created attachment 194340 [details] [review] a possible patch
two notes: I consider LC_TIME to be slightly broken as a concept (as applied in the C library). For things like what the preferred formats are, LC_TIME totally makes sense. Things like "Mon", "Tue", "Jan", "Feb" and so on are more like LC_MESSAGES territory, in my opinion. glibc uses LC_TIME for both. We could elect to follow it for compatibility, or go our own way because we think that it makes more sense. Second -- from checking for how to do the thousands separator for g_format_size(), I don't think we have nl_langinfo() on Windows. I'd be very happy to be proven wrong on that point.
is this committed now?
yes, it is