You've already forked linuxdeploy
mirror of
https://github.com/encounter/linuxdeploy.git
synced 2026-03-30 11:18:58 -07:00
Make sure to run ldd with LC_ALL=C
This commit is contained in:
+5
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user