From 5eafc3ceda983b1bd326ad0103f2fb441aed8acc Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 16 Feb 2004 16:44:06 +0000 Subject: [PATCH] Alexander E. Patrakov: With ncurses 5.4 or later, it is necessary to have the correct LC_CTYPE setting before calling initscr(). Otherwise, the line drawing characters and boxes are not visible on Linux console in UTF-8 mode, and that makes alsamixer totally unusable on such terminal. --- alsamixer/alsamixer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c index 665e172..560d27c 100644 --- a/alsamixer/alsamixer.c +++ b/alsamixer/alsamixer.c @@ -113,6 +113,8 @@ #include #include +#include + #ifndef CURSESINC #include #else @@ -1580,6 +1582,7 @@ mixer_init_window (void) { /* initialize ncurses */ + setlocale(LC_CTYPE, ""); mixer_window = initscr (); curs_set (0); /* hide the cursor */ -- 2.47.1