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:
parent
1ae39c2dda
commit
62d07f7f7c
|
@ -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…
Reference in New Issue