We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5074d50 commit cd96f26Copy full SHA for cd96f26
tools/kconfig/menuconfig.py
@@ -703,8 +703,12 @@ def menuconfig(kconf):
703
# errors ourselves.
704
kconf.warn = False
705
706
- # Make curses use the locale settings specified in the environment
707
- locale.setlocale(locale.LC_ALL, "")
+ try:
+ # Make curses use the locale settings specified in the environment
708
+ locale.setlocale(locale.LC_ALL, "")
709
+ except locale.Error:
710
+ # fall back to the default locale
711
+ locale.setlocale(locale.LC_ALL, "C")
712
713
# Try to fix Unicode issues on systems with bad defaults
714
if _CHANGE_C_LC_CTYPE_TO_UTF8:
0 commit comments