Skip to content

Commit a165869

Browse files
committed
test: set PYTHONIOENCODING for all targets
This encodes the printing stream, and fixes the printing for the message in `incrParse/simple`.
1 parent 0c92b16 commit a165869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def append_to_env_path(directory):
183183
config.environment['PATH'] = \
184184
os.path.pathsep.join((directory, config.environment['PATH']))
185185

186-
if kIsWindows:
186+
if sys.version_info[0] >= 3:
187187
config.environment['PYTHONIOENCODING'] = 'UTF8'
188188

189189
# Tweak the PATH to include the tools dir and the scripts dir.

0 commit comments

Comments
 (0)