Make sure to run ldd with LC_ALL=C

This commit is contained in:
TheAssassin
2018-09-22 23:20:39 +02:00
parent f3b54236a6
commit 1ad4e5e6a9
+5 -1
View File
@@ -123,10 +123,14 @@ namespace linuxdeploy {
std::vector<bf::path> paths;
std::map<std::string, std::string> env;
env.insert(std::make_pair(std::string("LC_ALL"), std::string("C")));
subprocess::Popen lddProc(
{"ldd", d->path.string().c_str()},
subprocess::output{subprocess::PIPE},
subprocess::error{subprocess::PIPE}
subprocess::error{subprocess::PIPE},
subprocess::environment(env);
);
auto lddOutput = lddProc.communicate();