slang-users mailing list

[2008 Date Index] [2008 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] slcurses and utf-8



Hi s-lang people,

I've been trying to figure out why I'm having broken UTF-8 in cfdisk on my Ubuntu box. I found out it is compiled with slang-curses support and does not explicitly enable UTF-8 support in slang, thus it does not work. I believe this should be fixed in slang rather than the application to be more compatible with ncurses. What do you think?

Thanks,
Michal
--- slcurses.c~	2008-12-21 20:37:27.000000000 +0100
+++ slcurses.c	2008-12-21 20:37:48.000000000 +0100
@@ -347,6 +347,9 @@
 #endif
      SLcurses_Num_Colors = 8;
 
+   /* Enable UTF-8 support if used on the terminal */
+   (void) SLutf8_enable (-1);
+
    if ((-1 == SLkp_init ())
        || (-1 == SLcurses_cbreak ())
        || (NULL == (SLcurses_Stdscr = SLcurses_newwin (0, 0, 0, 0)))





[2008 date index] [2008 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]