diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-08-18 20:46:53 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-21 22:24:04 +0200 |
commit | 5c9f3ca3e307be53b45beeed2ce1626f38008625 (patch) | |
tree | 919836fe454e953f46685adf8228b0401280d4b6 /community/namecoin/31-set-default-env-function.patch | |
parent | 6a00a953ba02bab6440a2c784e7db37c6eaeace1 (diff) | |
download | aports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.bz2 aports-5c9f3ca3e307be53b45beeed2ce1626f38008625.tar.xz |
testing/[various]: move to community
albatross-themes
apk-post-messages
autossh
bitcoin
btrbk
entr
ffmpegthumbnailer
firejail
firetools
fwsnort
gnome-colors
imapsync
inetutils-syslogd
inotify-tools-inc
isync
junit
ktsuss
letsencrypt-nosudo
libmbim
libndp
libqmi
libteam
mini-sendmail
modemmanager
namecoin
networkmanager
nginx-naxsi
numix-themes
nxapi
opencl-headers
opencl-icd-loader
opus-tools
perl-authen-ntlm
perl-bit-vector
perl-data-uniqid
perl-file-copy-recursive
perl-getopt-argvfile
perl-io-tee
perl-iptables-chainmgr
perl-iptables-parse
perl-module-scandeps
perl-par-dist
perl-par-packer
perl-par
perl-uri-escape
psad
py-crcmod
py-graphviz
py-lz4
py-opencl
py-opengl-accelerate
runit
secpwgen
secure-delete
socklog
spacefm
tinyssh
udevil
virt-viewer
virtualbricks
whois
wrk
xpra
zram-init
Diffstat (limited to 'community/namecoin/31-set-default-env-function.patch')
-rw-r--r-- | community/namecoin/31-set-default-env-function.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/community/namecoin/31-set-default-env-function.patch b/community/namecoin/31-set-default-env-function.patch new file mode 100644 index 0000000000..9af0446cfd --- /dev/null +++ b/community/namecoin/31-set-default-env-function.patch @@ -0,0 +1,61 @@ +--- namecoin-nc*/src/init.cpp ++++ namecoin-nc*/src/init.cpp +@@ -99,6 +99,10 @@ + #ifndef GUI + int main(int argc, char* argv[]) + { ++ #ifndef WIN32 ++ SetupEnvironment(); ++ #endif ++ + bool fRet = false; + fRet = AppInit(argc, argv); + +--- namecoin-nc*/src/qt/bitcoin.cpp ++++ namecoin-nc*/src/qt/bitcoin.cpp +@@ -124,6 +124,10 @@ + #ifndef BITCOIN_QT_TEST + int main(int argc, char *argv[]) + { ++ #ifndef WIN32 ++ SetupEnvironment(); ++ #endif ++ + // Command-line options take precedence: + ParseParameters(argc, argv); + +--- namecoin-nc*/src/util.cpp ++++ namecoin-nc*/src/util.cpp +@@ -1114,3 +1114,20 @@ + } + return true; + } ++ ++#ifndef WIN32 ++void SetupEnvironment() ++{ ++ try ++ { ++ #if BOOST_FILESYSTEM_VERSION == 3 ++ boost::filesystem::path::codecvt(); // Raises runtime error if current locale is invalid ++ #else // boost filesystem v2 ++ std::locale(); // Raises runtime error if current locale is invalid ++ #endif ++ } catch(std::runtime_error &e) ++ { ++ setenv("LC_ALL", "C", 1); // Force C locale ++ } ++} ++#endif + +--- namecoin-nc0.3.76/src/util.h ++++ namecoin-nc0.3.76/src.new/util.h +@@ -211,6 +211,7 @@ + + void RandAddSeed(); + void RandAddSeedPerfmon(); ++void SetupEnvironment(); + int OutputDebugStringF(const char* pszFormat, ...); + int my_snprintf(char* buffer, size_t limit, const char* format, ...); + + |