Commits

Armin Rigo committed 3447616

Fix the most common case by trying to use sys.getfilesystemencoding()
instead of the hard-coded 'latin1' encoding.

  • Participants
  • Parent commits 85a6995

Comments (0)

Files changed (1)

File lib_pypy/pyrepl/readline.py

 from pyrepl.unix_console import UnixConsole, _error
 
 
-ENCODING = 'latin1'     # XXX hard-coded
+ENCODING = sys.getfilesystemencoding() or 'latin1'     # XXX review
 
 __all__ = ['add_history',
            'clear_history',