Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed May 3, 2020
1 parent 7b3f5cf commit 697e7f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/internal/iutest_locale.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ class IuLocalUtil
{
const char* p = strchr(curr, '.');
::std::string locale = p == NULL ? curr : ::std::string(curr, p + 1);
if( locale != "C" )
locale += encoding;
ScopedLocale loc(category, locale.c_str());
if( loc )
{
locale += encoding;
return locale;
}
}
Expand Down

0 comments on commit 697e7f3

Please sign in to comment.