[lld] r204774 - [lit] Environment variables get stripped in lit. Manually specify locale.
Michael J. Spencer
bigcheesegs at gmail.com
Tue Mar 25 18:19:07 PDT 2014
Author: mspencer
Date: Tue Mar 25 20:19:07 2014
New Revision: 204774
URL: http://llvm.org/viewvc/llvm-project?rev=204774&view=rev
Log:
[lit] Environment variables get stripped in lit. Manually specify locale.
Modified:
lld/trunk/test/lit.cfg
Modified: lld/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.cfg?rev=204774&r1=204773&r2=204774&view=diff
==============================================================================
--- lld/trunk/test/lit.cfg (original)
+++ lld/trunk/test/lit.cfg Tue Mar 25 20:19:07 2014
@@ -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]):
More information about the llvm-commits
mailing list