Merge pull request #2561 from secondlife/brad/2553-about-sl-crash-locale-init
secondlife/viewer#2553 about sl crash locale initmeow-7.2.2
commit
a3f6f98f1b
|
|
@ -1410,6 +1410,14 @@ bool LLStringUtil::simpleReplacement(std::string &replacement, std::string token
|
|||
template<>
|
||||
void LLStringUtil::setLocale(std::string inLocale)
|
||||
{
|
||||
if(startsWith(inLocale, "MissingString"))
|
||||
{
|
||||
// it seems this hasn't been working for some time, and I'm not sure how it is intentded to
|
||||
// properly discover the correct locale. early out now to avoid failures later in
|
||||
// formatNumber()
|
||||
LL_WARNS() << "Failed attempting to set invalid locale: " << inLocale << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
sLocale = inLocale;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue