Mercurial > hg > crecord
changeset 100:8f8467e38202
Fix display of non-ASCII characters in default user locale encoding
author | immerrr <immerrr@gmail.com> |
---|---|
date | Thu, 28 Feb 2013 21:06:05 +0400 |
parents | 2dfb2c4c6612 |
children | af245f45c93d |
files | crecord/chunk_selector.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/crecord/chunk_selector.py +++ b/crecord/chunk_selector.py @@ -20,6 +20,11 @@ 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'