Fix wrong global locale setting committed in 86c66bb

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

Close #9733
This commit is contained in:
Udo Hoffmann 2021-04-06 11:51:35 +02:00 committed by Don HO
parent 1ae39c2dda
commit 62d07f7f7c
1 changed files with 1 additions and 1 deletions

View File

@ -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;