Add initial support for weekday formatting
This commit is contained in:
1 parent
069131dc25
commit
1cd9899cf3
6 files changed
+157
-33
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user