Skip to content

Commit 6ec86ea

Browse files
authored
Merge pull request #208 from cloudblue/LITE-27575-fix-encoding-issue-on-win
LITE-27575 force utf-8 stdout on win
2 parents b40f991 + 7609fa3 commit 6ec86ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connect/cli/ccli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def _ignore_openpyxl_warnings():
5151
def _set_stdout_unbuffered(): # pragma: no cover
5252
if 'pytest' not in sys.modules:
5353
sys.stdout = io.TextIOWrapper(open(sys.stdout.fileno(), 'wb', 0), write_through=True)
54+
sys.stdout.reconfigure(encoding='utf-8')
5455

5556

5657
if __name__ == '__main__':

0 commit comments

Comments
 (0)