From: Takashi Iwai Date: Mon, 16 Feb 2004 16:44:06 +0000 (+0000) Subject: Alexander E. Patrakov: X-Git-Tag: v1.0.3~10 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=5eafc3ceda983b1bd326ad0103f2fb441aed8acc;p=alsa-utils.git 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. --- 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 */