diff options
author | Brad Linden <46733234+brad-linden@users.noreply.github.com> | 2024-09-12 15:27:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 15:27:26 -0700 |
commit | a3f6f98f1b79e3d57ae67114db409297cd625310 (patch) | |
tree | f050bb10d659713a2adeab26ffcf6a35fb7750ab | |
parent | 7dd04dea9fb6882f4a7c8a5a5b79ace84838ae0e (diff) | |
parent | f4c53518d71180e4ba10b7b7c66bab9d26ec13a4 (diff) |
Merge pull request #2561 from secondlife/brad/2553-about-sl-crash-locale-init
secondlife/viewer#2553 about sl crash locale init
-rw-r--r-- | indra/llcommon/llstring.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp index 505789f9ea..2c40ff3efd 100644 --- a/indra/llcommon/llstring.cpp +++ b/indra/llcommon/llstring.cpp @@ -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; }; |