Update common/console.cpp
Co-authored-by: cebtenzzre <cebtenzzre@gmail.com>
This commit is contained in:
parent
1ad5224227
commit
a72c053f0c
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ namespace console {
|
||||||
auto lang = getenv("LANG");
|
auto lang = getenv("LANG");
|
||||||
if (lang != nullptr && strcmp(lang, "C") && strcasestr(lang, "utf-8") != nullptr) {
|
if (lang != nullptr && strcmp(lang, "C") && strcasestr(lang, "utf-8") != nullptr) {
|
||||||
setlocale(LC_ALL, lang);
|
setlocale(LC_ALL, lang);
|
||||||
} else{
|
} else {
|
||||||
setlocale(LC_ALL, "C.UTF-8");
|
setlocale(LC_ALL, "C.UTF-8");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue