Skip to content

Commit

Permalink
Disable locale-specific tests on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Nov 24, 2023
1 parent 8a39388 commit bea7ecc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ std::locale get_locale(const char* name, const char* alt_name) {
auto loc = do_get_locale(name);
if (loc == std::locale::classic() && alt_name)
loc = do_get_locale(alt_name);
#ifdef __OpenBSD__
// Locales are not working in OpenBSD:
// https://github.com/fmtlib/fmt/issues/3670.
loc = std::locale::classic();
#endif
if (loc == std::locale::classic())
fmt::print(stderr, "{} locale is missing.\n", name);
return loc;
Expand Down

0 comments on commit bea7ecc

Please sign in to comment.