Norbert Koch <nk(a)LF.net> writes:
After an update I encounter the following dump when trying to open
certain mails in gnus (it doesn't happen in .36):
#0 0x185063d0 in kill () from /usr/lib/libc.so.3
#1 0x80bb853 in fatal_error_signal (sig=6) at emacs.c:531
#2 0xbfbfdfdc in ?? ()
#3 0x80be7fa in assert_failed (file=0x82ad0e8 "buffer.h", line=1712,
expr=0x82ad18f "IN_TRT_TABLE_DOMAIN (c)") at emacs.c:3192
Mea culpa. I naively believed existing code did the right
thing. But it did not. This means even with non MULE
latin-1 environment, case-fold-search hasn't been working
for bytes > 127. Here's the fix.
2000-11-16 Yoshiki Hayashi <yoshiki(a)xemacs.org>
* buffer.h (IN_TRT_TABLE_DOMAIN): Cast to unsigned int.
Index: buffer.h
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/buffer.h,v
retrieving revision 1.13.2.25
diff -u -r1.13.2.25 buffer.h
--- buffer.h 2000/11/15 10:39:42 1.13.2.25
+++ buffer.h 2000/11/16 06:41:23
@@ -1702,7 +1702,7 @@
}
#define SET_TRT_TABLE_CHAR_1(table, ch1, ch2) \
Fput_char_table (make_char (ch1), make_char (ch2), table);
-#define IN_TRT_TABLE_DOMAIN(c) (((EMACS_UINT) (c)) <= 255)
+#define IN_TRT_TABLE_DOMAIN(c) (((unsigned char) (c)) <= 255)
INLINE_HEADER Emchar TRT_TABLE_OF (Lisp_Object trt, Emchar c);
INLINE_HEADER Emchar
--
Yoshiki Hayashi