From 1e7c6c098a298ad08810580a7db67f85e624aec4 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Mon, 8 Aug 2011 10:21:24 +1000 Subject: [PATCH] Add checks for the C.UTF-8 (C.utf8) locale for adding a currency symbol --- src/utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index 32f4df0..9c2ecd1 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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;