1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-07-21 16:14:14 -04:00

Add checks for the C.UTF-8 (C.utf8) locale for adding a currency symbol

This commit is contained in:
John Zaitseff 2011-08-08 10:21:24 +10:00
parent 601678313d
commit 1e7c6c098a

View File

@ -320,8 +320,10 @@ void init_locale (void)
/* Are we in the POSIX locale? This test may not be portable as the
string returned by setlocale() is supposed to be opaque. */
add_currency_symbol = false;
if (strcmp(current_mon_locale, "POSIX") == 0
|| strcmp(current_mon_locale, "C") == 0) {
if ( strcmp(current_mon_locale, "POSIX") == 0
|| strcmp(current_mon_locale, "C") == 0
|| strcmp(current_mon_locale, "C.UTF-8") == 0
|| strcmp(current_mon_locale, "C.utf8") == 0) {
add_currency_symbol = true;
lconvinfo.currency_symbol = MOD_POSIX_CURRENCY_SYMBOL;