Skip to content

Commit

Permalink
Merge pull request #1554 from tshortli/ascii-codec-cant-encode
Browse files Browse the repository at this point in the history
Set `stdout` and `stderr` encodings to UTF-8 in `build-script-helper.py`
  • Loading branch information
tshortli committed Mar 5, 2024
2 parents 240581a + 0823121 commit e0792ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Utilities/build-script-helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import sys
import errno

sys.stdout.reconfigure(encoding='utf-8')
sys.stderr.reconfigure(encoding='utf-8')

if platform.system() == 'Darwin':
shared_lib_ext = '.dylib'
else:
Expand Down

0 comments on commit e0792ec

Please sign in to comment.