Use a more sensible locale in tests

This commit is contained in:
Victor Zverovich
2023-10-08 08:45:37 -07:00
parent bf497ac068
commit 8e0ca0589f
2 changed files with 9 additions and 11 deletions
+1 -2
View File
@@ -37,9 +37,8 @@ std::locale do_get_locale(const char* name) {
std::locale get_locale(const char* name, const char* alt_name) {
auto loc = do_get_locale(name);
if (loc == std::locale::classic() && alt_name) {
if (loc == std::locale::classic() && alt_name)
loc = do_get_locale(alt_name);
}
if (loc == std::locale::classic())
fmt::print(stderr, "{} locale is missing.\n", name);
return loc;