Add initial support for weekday formatting

This commit is contained in:
Victor Zverovich committed 2021-05-24 10:21:34 -07:00
1 parent 069131dc25
commit 1cd9899cf3
6 files changed
+157 -33

No files matched your search

+9
View File
@@ -26,3 +26,12 @@ fmt::buffered_file open_buffered_file(FILE** fp) {
#endif
return f;
}
std::locale get_locale(const char* name) {
try {
return std::locale(name);
} catch (const std::runtime_error&) {
fmt::print(stderr, "{} locale is missing.\n", name);
}
return std::locale::classic();
}