summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2014-03-26 01:19:07 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2014-03-26 01:19:07 +0000
commit876bee81550afbeeb0790bec23011fb333f54582 (patch)
treeaaee82f94e6c831ab9e4b2693cc7bcc38039b72d
parenta4f983e258cbd901918f0b2ac45bb73b67d1b498 (diff)
downloadbcm5719-llvm-876bee81550afbeeb0790bec23011fb333f54582.tar.gz
bcm5719-llvm-876bee81550afbeeb0790bec23011fb333f54582.zip
[lit] Environment variables get stripped in lit. Manually specify locale.
llvm-svn: 204774
-rw-r--r--lld/test/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/lit.cfg b/lld/test/lit.cfg
index c66b6ac8299..2c38d0378d7 100644
--- a/lld/test/lit.cfg
+++ b/lld/test/lit.cfg
@@ -136,7 +136,7 @@ except OSError as why:
print("Could not find llvm-config in " + llvm_tools_dir)
exit(42)
-llvm_config_output = llvm_config_cmd.stdout.read().decode(locale.getdefaultlocale()[1])
+llvm_config_output = llvm_config_cmd.stdout.read().decode('utf_8')
llvm_config_output_list = llvm_config_output.split("\n")
if re.search(r'DEBUG', llvm_config_output_list[0]):
OpenPOWER on IntegriCloud