Commits

immerrr  committed 8f8467e

Fix display of non-ASCII characters in default user locale encoding

  • Participants
  • Parent commits 2dfb2c4

Comments (0)

Files changed (1)

File crecord/chunk_selector.py

 import signal
 import textwrap
 
+# This is required for ncurses to display non-ASCII characters in default user
+# locale encoding correctly.  --immerrr
+import locale
+locale.setlocale(locale.LC_ALL, '')
+
 from crpatch import Patch, header, hunk, HunkLine
 
 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce'