unicode_test: fail successfuly on a missing locale

This commit is contained in:
Mikhail Paulyshka 2022-08-20 18:23:05 +03:00 committed by GitHub
parent 541cd21838
commit 2f9a4bde39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ TEST(unicode_test, is_utf8) { EXPECT_TRUE(fmt::detail::is_utf8()); }
TEST(unicode_test, legacy_locale) {
auto loc = get_locale("be_BY.CP1251", "Belarusian_Belarus.1251");
EXPECT_NE(loc, std::locale::classic());
if (loc == std::locale::classic()) return;
auto s = std::string();