Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63603:56b7a8c5a3ba
Date: 2013-04-24 18:18 -0700
http://bitbucket.org/pypy/pypy/changeset/56b7a8c5a3ba/
Log: let TextIO determine the default stdio encodings (via
locale.getpreferredencoding()). fixes windows specifying 'mbcs'
which is now incompatible w/ backslashreplace
diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py
--- a/pypy/interpreter/app_main.py
+++ b/pypy/interpreter/app_main.py
@@ -240,9 +240,7 @@
encerr = e
try:
- if not encoding:
- encoding = sys.getfilesystemencoding()
- if ':' in encoding:
+ if encoding and ':' in encoding:
encoding, errors = encoding.split(':', 1)
else:
errors = None
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit