Browse Source

Fix wrong global locale setting committed in 86c66bb

Fix wrong global locale setting due to PR #9707 (86c66bba90 (r49146650))

Close #9733
pull/9754/head
Udo Hoffmann 4 years ago committed by Don HO
parent
commit
62d07f7f7c
  1. 2
      scintilla/boostregex/BoostRegExSearch.cxx

2
scintilla/boostregex/BoostRegExSearch.cxx

@ -416,7 +416,7 @@ void BoostRegexSearch::EncodingDependent<CharT, CharacterIterator>::compileRegex
{ {
if (_lastCompileFlags != compileFlags || _lastRegexString != regex) if (_lastCompileFlags != compileFlags || _lastRegexString != regex)
{ {
std::locale l = std::locale(""); std::locale l = std::locale::global(std::locale(""));
_regex = Regex(CharTPtr(regex), static_cast<regex_constants::syntax_option_type>(compileFlags)); _regex = Regex(CharTPtr(regex), static_cast<regex_constants::syntax_option_type>(compileFlags));
std::locale::global(l); std::locale::global(l);
_lastRegexString = regex; _lastRegexString = regex;

Loading…
Cancel
Save