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 061e71f commit 18df99cCopy full SHA for 18df99c
menuconfig.py
@@ -703,8 +703,13 @@ 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:
708
+ # Make curses use the locale settings specified in the environment
709
+ locale.setlocale(locale.LC_ALL, "")
710
+ except locale.Error:
711
+ # fall back to the default locale
712
+ locale.setlocale(locale.LC_ALL, "C")
713
714
# Try to fix Unicode issues on systems with bad defaults
715
if _CHANGE_C_LC_CTYPE_TO_UTF8:
0 commit comments