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 1ae39c2dda
commit 62d07f7f7c

@ -416,7 +416,7 @@ void BoostRegexSearch::EncodingDependent<CharT, CharacterIterator>::compileRegex
{
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));
std::locale::global(l);
_lastRegexString = regex;

Loading…
Cancel
Save