[gnome-control-center] datetime: Fix date endianess for en_HK
- From: Mathieu Bridon <mbridon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Fix date endianess for en_HK
- Date: Tue, 16 Jun 2015 07:18:31 +0000 (UTC)
commit 623abfb4283dcfd3242464b88766597c1b0605f6
Author: Mathieu Bridon <bochecha daitauha fr>
Date: Thu Jun 11 18:09:39 2015 +0200
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
panels/datetime/date-endian.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/datetime/date-endian.c b/panels/datetime/date-endian.c
index 453c6ab..34f1d38 100644
--- a/panels/datetime/date-endian.c
+++ b/panels/datetime/date-endian.c
@@ -94,6 +94,7 @@ date_endian_get_default (gboolean verbose)
return DEFAULT_ENDIANESS;
}
switch (c) {
+ case 'A':
case 'd':
case 'e':
if (has_item (items, ITEM_DAY) == FALSE) {
@@ -116,7 +117,6 @@ date_endian_get_default (gboolean verbose)
i++;
}
break;
- case 'A':
case 'a':
/* Ignore */
;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]