mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-12 21:00:36 +02:00
system: skip trying to set the locale on NetBSD
Just treat it the same as the other BSDs. Fixes #17379.
This commit is contained in:
parent
ddc6979b8b
commit
fdd71448e7
@ -1301,7 +1301,7 @@ void SetupEnvironment()
|
|||||||
#endif
|
#endif
|
||||||
// On most POSIX systems (e.g. Linux, but not BSD) the environment's locale
|
// On most POSIX systems (e.g. Linux, but not BSD) the environment's locale
|
||||||
// may be invalid, in which case the "C.UTF-8" locale is used as fallback.
|
// may be invalid, in which case the "C.UTF-8" locale is used as fallback.
|
||||||
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
#if !defined(WIN32) && !defined(MAC_OSX) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
|
||||||
try {
|
try {
|
||||||
std::locale(""); // Raises a runtime error if current locale is invalid
|
std::locale(""); // Raises a runtime error if current locale is invalid
|
||||||
} catch (const std::runtime_error&) {
|
} catch (const std::runtime_error&) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user