GNOME Bugzilla – Bug 611415
incomplete locale determination
Last modified: 2010-03-02 18:02:53 UTC
when asked for the existing locales, goffice appears to provide only a subset of the locales: On my system I have: [aguelzow@kirkman ~]$ locale -a C POSIX de_DE.utf8 en_CA.utf8 en_GB.utf8 en_US.utf8 es_US.utf8 fr_CA.utf8 fr_FR.utf8 ru_RU.utf8 [aguelzow@kirkman ~]$ In gnumeric in the sort dialog I have only one locale available: C Checking the code in go-locale-sel.c it is clear that when goffice uses setlocale to determine the existence of locales, it only uses a non-charmap version of the locale name, and there is no de_DE or en_CA etc. on my system. Note that this is also reported as https://bugs.launchpad.net/ubuntu/+source/gnumeric/+bug/339325
Hmm... We have no good way of determining what locales are available; "locale -a" certainly isn't standard. I don't see anything wrong with trying adding ".utf8" and trying that first. We certainly want utf8. For the record, here's a part of what I see: ... zh_CN zh_CN.gb18030 zh_CN.gbk zh_CN.utf8 zh_HK zh_HK.utf8 zh_SG zh_SG.gbk zh_SG.utf8 zh_TW ...
Note: we should not add "utf8" to "C"!
Created attachment 154965 [details] [review] Tentative patch How about that?
Created attachment 154979 [details] [review] Updated patch
Review of attachment 154979 [details] [review]: looks good to me
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.