Skip to content

Commit 6ba71af

Browse files
committed
Switched to 'oem' encoding per jcbrill's advice
1 parent 6ab561a commit 6ba71af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SCons/Platform/win32.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,12 @@ def piped_spawn(sh, escape, cmd, args, env, stdout, stderr):
149149
args.append("2>" + tmpFileStderrName)
150150

151151
# Sanitize encoding. None is not a valid encoding.
152+
# Since we're handling a redirected shell command use
153+
# the shells default encoding.
152154
if stdout.encoding is None:
153-
stdout.encoding = 'utf-8'
155+
stdout.encoding = 'oem'
154156
if stderr.encoding is None:
155-
stderr.encoding = 'utf-8'
157+
stderr.encoding = 'oem'
156158

157159
# actually do the spawn
158160
try:

0 commit comments

Comments
 (0)