Fix sign handling with large code units

This commit is contained in:
Victor Zverovich
2022-08-20 07:46:58 -07:00
parent 779449fd99
commit 1f95c34381
2 changed files with 10 additions and 2 deletions

View File

@ -513,4 +513,8 @@ TEST(locale_test, chrono_weekday) {
std::locale::global(loc_old);
}
TEST(locale_test, sign) {
EXPECT_EQ(fmt::format(std::locale(), L"{:L}", -50), L"-50");
}
#endif // FMT_STATIC_THOUSANDS_SEPARATOR