diff options
Diffstat (limited to 'testing/bitcoin/20-set-default-env.patch')
-rw-r--r-- | testing/bitcoin/20-set-default-env.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/testing/bitcoin/20-set-default-env.patch b/testing/bitcoin/20-set-default-env.patch deleted file mode 100644 index b9717abbc..000000000 --- a/testing/bitcoin/20-set-default-env.patch +++ /dev/null @@ -1,57 +0,0 @@ ---- ./src/bitcoin-cli.cpp -+++ ./src/bitcoin-cli.cpp -@@ -53,6 +53,16 @@ - - int main(int argc, char* argv[]) - { -+ #ifndef WIN32 -+ try -+ { -+ boost::filesystem::path::codecvt(); // Raises runtime error if current locale is invalid -+ } catch(std::runtime_error &e) -+ { -+ setenv("LC_ALL", "C", 1); // Force C locale -+ } -+ #endif -+ - try - { - if(!AppInitRPC(argc, argv)) ---- ./src/bitcoind.cpp -+++ ./src/bitcoind.cpp -@@ -166,6 +166,16 @@ - - int main(int argc, char* argv[]) - { -+ #ifndef WIN32 -+ try -+ { -+ boost::filesystem::path::codecvt(); // Raises runtime error if current locale is invalid -+ } catch(std::runtime_error &e) -+ { -+ setenv("LC_ALL", "C", 1); // Force C locale -+ } -+ #endif -+ - bool fRet = false; - - // Connect bitcoind signal handlers ---- ./src/qt/bitcoin.cpp.orig -+++ ./src/qt/bitcoin.cpp -@@ -445,6 +445,16 @@ - #ifndef BITCOIN_QT_TEST - int main(int argc, char *argv[]) - { -+#ifndef WIN32 -+ try -+ { -+ boost::filesystem::path::codecvt(); // Raises runtime error if current locale is invalid -+ } catch(std::runtime_error &e) -+ { -+ setenv("LC_ALL", "C", 1); // Force C locale -+ } -+#endif -+ - /// 1. Parse command-line options. These take precedence over anything else. - // Command-line options take precedence: - ParseParameters(argc, argv); |