Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig/mconf: Initialize the default locale at startup

Fix bug where make menuconfig doesn't initialize the default locale, which
causes ncurses menu borders to be displayed incorrectly (lqqqqk) in
UTF-8 terminals that don't support VT100 ACS by default, such as PuTTY.

Signed-off-by: Jakub Horký <jakub.git@horky.net>
Link: https://patch.msgid.link/20251014154933.3990990-1-jakub.git@horky.net
[nathan: Alphabetize locale.h include]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Jakub Horký and committed by
Nathan Chancellor
3927c4a1 cf208525

+3
+3
scripts/kconfig/mconf.c
··· 12 12 #include <errno.h> 13 13 #include <fcntl.h> 14 14 #include <limits.h> 15 + #include <locale.h> 15 16 #include <stdarg.h> 16 17 #include <stdlib.h> 17 18 #include <string.h> ··· 931 930 int res; 932 931 933 932 signal(SIGINT, sig_handler); 933 + 934 + setlocale(LC_ALL, ""); 934 935 935 936 if (ac > 1 && strcmp(av[1], "-s") == 0) { 936 937 silent = 1;