Update common/console.cpp

Co-authored-by: cebtenzzre <cebtenzzre@gmail.com>
This commit is contained in:
staviq 2023-10-20 03:04:23 +00:00 committed by GitHub
parent 1ad5224227
commit a72c053f0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ namespace console {
auto lang = getenv("LANG");
if (lang != nullptr && strcmp(lang, "C") && strcasestr(lang, "utf-8") != nullptr) {
setlocale(LC_ALL, lang);
} else{
} else {
setlocale(LC_ALL, "C.UTF-8");
}
}