Update of /cvsroot/alsa/alsa-utils/alsamixer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11581/alsamixer

Modified Files:
        alsamixer.c 
Log Message:
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.


Index: alsamixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/alsamixer/alsamixer.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- alsamixer.c 4 Feb 2004 19:23:44 -0000       1.70
+++ alsamixer.c 16 Feb 2004 16:44:06 -0000      1.71
@@ -113,6 +113,8 @@
 #include <sys/signal.h>
 #include <sys/time.h>
 
+#include <locale.h>
+
 #ifndef CURSESINC
 #include <ncurses.h>
 #else
@@ -1580,6 +1582,7 @@
 {
   /* initialize ncurses
    */
+  setlocale(LC_CTYPE, "");
   mixer_window = initscr ();
   curs_set (0); /* hide the cursor */
 



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to