Skip to content

Commit

Permalink
Merge pull request #208 from cloudblue/LITE-27575-fix-encoding-issue-…
Browse files Browse the repository at this point in the history
…on-win

LITE-27575 force utf-8 stdout on win
  • Loading branch information
ffaraone authored May 23, 2023
2 parents b40f991 + 7609fa3 commit 6ec86ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connect/cli/ccli.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def _ignore_openpyxl_warnings():
def _set_stdout_unbuffered(): # pragma: no cover
if 'pytest' not in sys.modules:
sys.stdout = io.TextIOWrapper(open(sys.stdout.fileno(), 'wb', 0), write_through=True)
sys.stdout.reconfigure(encoding='utf-8')


if __name__ == '__main__':
Expand Down

0 comments on commit 6ec86ea

Please sign in to comment.