Commits

Armin Rigo committed 6a98b80

Port 3447616508ea from the pypy repo:

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

  • Participants
  • Parent commits 714bcbd

Comments (0)

Files changed (1)

File 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',