1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/bitcoin/use-c-locale.patch
Stuart Cardall add104d995 community/bitcoin: fix locales
* bitcoin now sets a C.UTF-8 environment which clashes with ours
  this patch reverts bitcoin to it's previous C environment

* fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/11620
2020-12-14 15:30:54 +00:00

11 lines
398 B
Diff

--- bitcoin-0.20.1/src/util/system.cpp
+++ bitcoin-0.20.1/src/util/system.cpp.new
@@ -1089,7 +1089,7 @@
try {
std::locale(""); // Raises a runtime error if current locale is invalid
} catch (const std::runtime_error&) {
- setenv("LC_ALL", "C.UTF-8", 1);
+ setenv("LC_ALL", "C", 1);
}
#elif defined(WIN32)
// Set the default input/output charset is utf-8