diff options
author | Brad Linden <brad@lindenlab.com> | 2024-09-12 15:04:03 -0700 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2024-09-12 15:04:03 -0700 |
commit | f4c53518d71180e4ba10b7b7c66bab9d26ec13a4 (patch) | |
tree | bc9a7a9af3293b7cfc99b88a6e0c7ff838962511 | |
parent | bb9a2dd75bce568c5eef596b69a503270994e0ba (diff) |
Attempted fix for mac crash when showing About Second Life.
secondlife/viewer#2553
-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; }; |