From c0f7b0b1f325fa8357d42eb0fccaccae7e53b995 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 27 Nov 2015 22:47:59 +0100 Subject: [PATCH] [Linux] Fix platform_get_locale_currency with new ascii fallback --- src/platform/posix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/posix.c b/src/platform/posix.c index 27e96bb23a..b31f96198a 100644 --- a/src/platform/posix.c +++ b/src/platform/posix.c @@ -699,11 +699,12 @@ uint8 platform_get_locale_currency(){ //Only works if g_currency_specs contains the actual (local) symbol for(int i = 0; i < CURRENCY_END; ++i){ - if(!strcmp(lc->currency_symbol, g_currency_specs[i].symbol)){ + if(!strcmp(lc->currency_symbol, CurrencyDescriptors[i].symbol_unicode)){ return i; } } - //TODO: can be removed when g_currency_specs contains the actual symbols for won and rubel + //TODO: can be removed when CurrencyDescriptors contains the actual symbols for won and rubel + //Won should remain a special case, beacause some (or all?) systems use the full width won sign (e.g. Gentoo) if(!strncmp(lc->int_curr_symbol, "KRW", 3)){ return CURRENCY_WON; }