Use a more sensible locale in tests
This commit is contained in:
1 parent
bf497ac068
commit
8e0ca0589f
2 files changed
+9
-11
No files matched your search
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user