From c86ba9b2d9e2ac5998838845627ccfec86e05c4f Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 10 Nov 2020 19:39:21 +0100 Subject: [PATCH] FIRE-6070: Use user's system locale setting for number formatting --- indra/llcommon/llstring.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp index f0b9a169de..64b157e9d5 100644 --- a/indra/llcommon/llstring.cpp +++ b/indra/llcommon/llstring.cpp @@ -1285,7 +1285,9 @@ void LLStringUtil::formatNumber(std::string& numStr, std::string decimals) // std::locale() throws if the locale is unknown! (EXT-7926) try { - strStream.imbue(std::locale(sLocale.c_str())); + // FIRE-6070: Use user's system locale setting for number formatting + //strStream.imbue(std::locale(sLocale.c_str())); + strStream.imbue(std::locale("")); } catch (const std::exception &) { LL_WARNS_ONCE("Locale") << "Cannot set locale to " << sLocale << LL_ENDL;