Skip to content

Commit 059344d

Browse files
authored
Merge pull request #33120 from compnerd/encoding
test: set `PYTHONIOENCODING` for all targets
2 parents f2e8a26 + a165869 commit 059344d

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)