Author: Armin Rigo <[email protected]>
Branch:
Changeset: r46632:3447616508ea
Date: 2011-08-19 13:47 +0200
http://bitbucket.org/pypy/pypy/changeset/3447616508ea/
Log: Fix the most common case by trying to use
sys.getfilesystemencoding() instead of the hard-coded 'latin1'
encoding.
diff --git a/lib_pypy/pyrepl/readline.py b/lib_pypy/pyrepl/readline.py
--- a/lib_pypy/pyrepl/readline.py
+++ b/lib_pypy/pyrepl/readline.py
@@ -33,7 +33,7 @@
from pyrepl.unix_console import UnixConsole, _error
-ENCODING = 'latin1' # XXX hard-coded
+ENCODING = sys.getfilesystemencoding() or 'latin1' # XXX review
__all__ = ['add_history',
'clear_history',
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit