A multibyte enabled rxvt-2.7.5 crashes when called with
multichar_encoding mode set to "noenc" and one tries to change
font sizes using  Shift-KP_Add  and  Shift-KP_Subtract.

configure options are:

    ./configure --prefix=/usr/X11R6 --enable-everything --enable-languages 
--enable-xim --enable-xgetdefault --enable-ttygid 

now start it with "LANG=C rxvt -km noenc"

and try to change the font size with Shift-KP_Add  and
Shift-KP_Subtract. I get a segmentation fault after the second time
the font is changed.

I fixed this problem with the following patch:

--- rxvt-2.7.5/src/main.c	Tue Jan  9 19:15:56 2001
+++ rxvt-2.7.5/src/main.c	Tue Jan  9 19:16:49 2001
@@ -602,6 +602,10 @@
 	    c = "-*-%.2d-*-ksc5601*-*";
 	    enc = "KR";
 	    break;
+	case NOENC:
+	    c = "*"; /* "-*-%.2d-*-jisx0208*-*"; */
+	    enc = "NOENC";
+            break;
 	default:
 	    i = fh;		/* jump past next two sections */
 	    break;

I don't know whether this patch is correct, but it works for me.

Maybe the rxvt experts can find a better solution.

-- 
Mike Fabian   <[EMAIL PROTECTED]>

Reply via email to