FIRE-6070: Use user's system locale setting for number formatting

meow-7.2.2
Ansariel 2020-11-10 19:39:21 +01:00
parent 636b411059
commit c86ba9b2d9
1 changed files with 3 additions and 1 deletions

View File

@ -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()));
// <FS:Ansariel> 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;