add some encoding debug code

This commit is contained in:
Joe Rickerby
2020-11-13 17:40:07 +00:00
parent 3d59c56584
commit 8e2381bfb1
+11
View File
@@ -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':