* [PATCH] kconfig/mconf: Initialize the default locale at startup
@ 2025-10-14 15:49 Jakub Horký
2025-11-01 4:37 ` Nathan Chancellor
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Horký @ 2025-10-14 15:49 UTC (permalink / raw)
To: linux-kbuild; +Cc: linux-kernel, Jakub Horký
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>
---
scripts/kconfig/mconf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 84ea9215c0a7..1e3322af06d5 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -18,6 +18,7 @@
#include <strings.h>
#include <signal.h>
#include <unistd.h>
+#include <locale.h>
#include <list.h>
#include <xalloc.h>
@@ -931,6 +932,8 @@ int main(int ac, char **av)
signal(SIGINT, sig_handler);
+ setlocale(LC_ALL, "");
+
if (ac > 1 && strcmp(av[1], "-s") == 0) {
silent = 1;
/* Silence conf_read() until the real callback is set up */
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kconfig/mconf: Initialize the default locale at startup
2025-10-14 15:49 [PATCH] kconfig/mconf: Initialize the default locale at startup Jakub Horký
@ 2025-11-01 4:37 ` Nathan Chancellor
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Chancellor @ 2025-11-01 4:37 UTC (permalink / raw)
To: linux-kbuild, Jakub Horký; +Cc: linux-kernel
On Tue, 14 Oct 2025 17:49:32 +0200, Jakub Horký wrote:
> 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.
>
>
Applied, thanks!
[1/1] kconfig/mconf: Initialize the default locale at startup
https://git.kernel.org/kbuild/c/3927c4a1084c4
Best regards,
--
Nathan Chancellor <nathan@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-01 4:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-14 15:49 [PATCH] kconfig/mconf: Initialize the default locale at startup Jakub Horký
2025-11-01 4:37 ` Nathan Chancellor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®