Commits

Armin Rigo committed 131735f

I *think* that this is already much better: if PYTHONIOENCODING
is not set, then don't call set_io_encoding() at all on Windows.

  • Participants
  • Parent commits a76be72

Comments (0)

Files changed (1)

File pypy/translator/goal/app_main.py

             print >> sys.stderr, "'import site' failed"
 
     readenv = not ignore_environment
-    io_encoding = ((readenv and os.getenv("PYTHONIOENCODING"))
-                   or sys.getfilesystemencoding())
+    io_encoding = readenv and os.getenv("PYTHONIOENCODING")
+    if not io_encoding and not IS_WINDOWS:
+        io_encoding = sys.getfilesystemencoding()
     if io_encoding:
         set_io_encoding(io_encoding)