diff options
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/llerror.cpp | 2 | ||||
| -rw-r--r-- | indra/llcommon/llstring.cpp | 8 | 
2 files changed, 9 insertions, 1 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp index ad35bc84f2..90c6ba309b 100644 --- a/indra/llcommon/llerror.cpp +++ b/indra/llcommon/llerror.cpp @@ -110,7 +110,7 @@ namespace {          virtual void recordMessage(LLError::ELevel level,                                      const std::string& message) override          { -            LL_PROFILE_ZONE_SCOPED_CATEGORY_LOGGING +            LL_PROFILE_ZONE_SCOPED_CATEGORY_LOGGING;              int syslogPriority = LOG_CRIT;              switch (level) {                  case LLError::LEVEL_DEBUG:  syslogPriority = LOG_DEBUG; break; 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;  };  | 
