diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-08 16:46:54 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-08 17:05:50 +0200 |
| commit | 1d252b30c7794300c33020099518daa042fb07fd (patch) | |
| tree | 48638e4c37a65beb90fc6e28860a387af49703d8 /examples/help_grep.py | |
| parent | ed38e895acee66d2685f0d7210f6eefd6fb81576 (diff) | |
menuconfig: Convert the C locale to a UTF-8 locale for LC_CTYPE
If LC_CTYPE is set to the C locale, try to convert it to a UTF-8 locale.
Use a list of commonly available UTF-8 locales. Give up and use the C
locale if none of them are available.
This fixes curses Unicode I/O issues on systems with bad defaults:
ncurses configures itself from the locale settings, and the C locale
implies ASCII.
The logic mirrors https://www.python.org/dev/peps/pep-0538/. I took the
list of locales to try from the CPython code (in Python/pylifecycle.c).
Diffstat (limited to 'examples/help_grep.py')
0 files changed, 0 insertions, 0 deletions
