From 8e2381bfb13231ae50ad4fc2776c613452b5fd71 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Fri, 13 Nov 2020 17:40:07 +0000 Subject: [PATCH] add some encoding debug code --- cibuildwheel/__main__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cibuildwheel/__main__.py b/cibuildwheel/__main__.py index 4e25befa..ea12f8b5 100644 --- a/cibuildwheel/__main__.py +++ b/cibuildwheel/__main__.py @@ -91,6 +91,17 @@ def main() -> None: args = parser.parse_args() + # TODO remove this encoding stuff + import locale + import os + print(sys.stdout.encoding) + print(sys.stdout.isatty()) + print(locale.getpreferredencoding()) + print(sys.getfilesystemencoding()) + print(os.environ["PYTHONIOENCODING"]) + print(chr(246), chr(9786), chr(9787)) + # TODO end + detect_obsolete_options() if args.platform != 'auto':