summaryrefslogtreecommitdiff
path: root/tests/config_set_string
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-08 16:46:54 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-08 17:05:50 +0200
commit1d252b30c7794300c33020099518daa042fb07fd (patch)
tree48638e4c37a65beb90fc6e28860a387af49703d8 /tests/config_set_string
parented38e895acee66d2685f0d7210f6eefd6fb81576 (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 'tests/config_set_string')
0 files changed, 0 insertions, 0 deletions