From 9ba97c4be39b61d1c5f5a4ef09e5aca63d3f19b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 13 Nov 2018 20:59:42 +0100 Subject: [PATCH] Windows: Get objdump output as string Otherwise we have to guess the encoding of the host system --- win/misc/depcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/misc/depcheck.py b/win/misc/depcheck.py index 693794ae6..1f0057db2 100644 --- a/win/misc/depcheck.py +++ b/win/misc/depcheck.py @@ -47,7 +47,7 @@ SYSTEM_LIBS = ['advapi32.dll', def get_dependencies(filename): deps = [] try: - data = subprocess.check_output(["objdump", "-p", filename]) + data = subprocess.getoutput("objdump -p %s" % filename) except Exception as error: print(error) return deps