if locale are set to C, do not do encoding convertion
This commit is contained in:
@@ -92,7 +92,7 @@ namespace
|
|||||||
void init_current_locale()
|
void init_current_locale()
|
||||||
{
|
{
|
||||||
std::string envlocale = setlocale(LC_CTYPE, "");
|
std::string envlocale = setlocale(LC_CTYPE, "");
|
||||||
if (envlocale.empty())
|
if (envlocale.empty() || envlocale == "C")
|
||||||
return;
|
return;
|
||||||
std::ifstream f(SUPPORTED_LOCALES);
|
std::ifstream f(SUPPORTED_LOCALES);
|
||||||
if (!f.is_open())
|
if (!f.is_open())
|
||||||
|
|||||||
Reference in New Issue
Block a user