Skip to content

Commit e0792ec

Browse files
authored
Merge pull request #1554 from tshortli/ascii-codec-cant-encode
Set `stdout` and `stderr` encodings to UTF-8 in `build-script-helper.py`
2 parents 240581a + 0823121 commit e0792ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import sys
1010
import errno
1111

12+
sys.stdout.reconfigure(encoding='utf-8')
13+
sys.stderr.reconfigure(encoding='utf-8')
14+
1215
if platform.system() == 'Darwin':
1316
shared_lib_ext = '.dylib'
1417
else:

0 commit comments

Comments
 (0)