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
This commit is contained in:
parent
8b2d6b7afe
commit
623abfb428
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
;
|
||||
|
|
Loading…
Add table
Reference in a new issue