mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 15:11:43 +01:00
Add initial support for weekday formatting
This commit is contained in:
@@ -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