ll_convert_string_to_utf8_string() only exists on advanced Windows tech as of now... ;)
parent
c86ba9b2d9
commit
d8ec4acb4d
|
|
@ -1301,9 +1301,12 @@ void LLStringUtil::formatNumber(std::string& numStr, std::string decimals)
|
|||
if (convertToS32(numStr, intStr))
|
||||
{
|
||||
strStream << intStr;
|
||||
numStr = strStream.str();
|
||||
// <FS:Ansariel> FIRE-6070: Fix random symbols in formatted numbers in some locales
|
||||
//numStr = strStream.str();
|
||||
numStr = ll_convert_string_to_utf8_string(strStream.str());
|
||||
#ifdef LL_WINDOWS
|
||||
numStr = ll_convert_string_to_utf8_string(numStr);
|
||||
#endif
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1313,9 +1316,12 @@ void LLStringUtil::formatNumber(std::string& numStr, std::string decimals)
|
|||
if (convertToF32(numStr, floatStr))
|
||||
{
|
||||
strStream << std::fixed << std::showpoint << std::setprecision(intDecimals) << floatStr;
|
||||
numStr = strStream.str();
|
||||
// <FS:Ansariel> FIRE-6070: Fix random symbols in formatted numbers in some locales
|
||||
//numStr = strStream.str();
|
||||
numStr = ll_convert_string_to_utf8_string(strStream.str());
|
||||
#ifdef LL_WINDOWS
|
||||
numStr = ll_convert_string_to_utf8_string(numStr);
|
||||
#endif
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue