Skip to content

Commit fdd7144

Browse files
committed
system: skip trying to set the locale on NetBSD
Just treat it the same as the other BSDs. Fixes #17379.
1 parent ddc6979 commit fdd7144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ void SetupEnvironment()
13011301
#endif
13021302
// On most POSIX systems (e.g. Linux, but not BSD) the environment's locale
13031303
// may be invalid, in which case the "C.UTF-8" locale is used as fallback.
1304-
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
1304+
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
13051305
try {
13061306
std::locale(""); // Raises a runtime error if current locale is invalid
13071307
} catch (const std::runtime_error&) {

0 commit comments

Comments
 (0)