Skip to content

Commit

Permalink
LITE-27575 force utf-8 stdout on win
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Faraone committed May 23, 2023
1 parent b40f991 commit 7609fa3
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 7609fa3

Please sign in to comment.