Commit graph

7 commits

Author SHA1 Message Date
Michael Catanzaro
a22da99aaf Replace unsafe setlocale() use with uselocale()
setlocale() is not threadsafe except when used only to query the locale
without changing it. Let's use uselocale() instead, which changes the
locale only on the calling thread. Much better.
2019-07-03 17:15:33 -05:00
Mathieu Bridon
623abfb428 datetime: Fix date endianess for en_HK
Hong Kong people expect to use a little endian date in English. (and a
big endian date in Chinese)

The D_FMT format string for en_HK is '%A, %B %d, %Y', which the current
code parses as middle endian.

This commit makes the code parse it as little endian, that is it doesn't
ignore the %A formatter any more.

en_HK is the only UTF-8 locale with this D_FMT format string, so this
shouldn't change anything for other locales.

https://bugzilla.gnome.org/show_bug.cgi?id=750781
2015-06-15 17:27:34 +02:00
Mathieu Bridon
8b2d6b7afe datetime: Support new date endianess for ce_RU
https://bugzilla.gnome.org/show_bug.cgi?id=749438
2015-06-15 17:23:36 +02:00
Mathieu Bridon
71d5be4cf2 datetime: Fix comment
https://bugzilla.gnome.org/show_bug.cgi?id=749438
2015-06-15 17:23:36 +02:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Bastien Nocera
2898b86e68 datetime: Implement date endianess detection
Implement fairly robust detection of endianess based on
the d_fmt format exported by glibc.

https://bugzilla.gnome.org/show_bug.cgi?id=636896
2011-03-08 07:59:22 +00:00
Bastien Nocera
c93e7add24 datetime: Add UI code to reorder date widgets
Based on the locale's date format, rather than only support
the US-centric version.

https://bugzilla.gnome.org/show_bug.cgi?id=636896
2011-03-08 07:59:21 +00:00