# HG changeset patch # User Kenichi Handa # Date 1271748435 -32400 # Node ID b7a5dd2fb441528598b3a0819cf736ddebb65e7f # Parent bef5d1738c0bb40be04ee597f643c8282f7f975f# Parent 54f7ec0a9243034873d12a568344695dcf3708d1 charset.c (char_charset): Consider Vcharset_non_preferred_head only when the arg CHARSET_LIST is nil. diff -r bef5d1738c0b -r b7a5dd2fb441 src/ChangeLog --- a/src/ChangeLog Mon Apr 19 21:50:52 2010 -0400 +++ b/src/ChangeLog Tue Apr 20 16:27:15 2010 +0900 @@ -1,3 +1,8 @@ +2010-04-20 Kenichi Handa + + * charset.c (char_charset): Consider Vcharset_non_preferred_head + only when the arg CHARSET_LIST is nil. + 2010-04-20 Stefan Monnier Make variable forwarding explicit rather the using special values. @@ -110,6 +115,8 @@ * .gdbinit (xsubchartable): New command. +2010-04-19 Eli Zaretskii + * xdisp.c (display_line): Don't write beyond the last glyph row in the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html diff -r bef5d1738c0b -r b7a5dd2fb441 src/charset.c --- a/src/charset.c Mon Apr 19 21:50:52 2010 -0400 +++ b/src/charset.c Tue Apr 20 16:27:15 2010 +0900 @@ -2082,8 +2082,9 @@ return charset; } charset_list = XCDR (charset_list); - if (c <= MAX_UNICODE_CHAR - && EQ (charset_list, Vcharset_non_preferred_head)) + if (! maybe_null + && c <= MAX_UNICODE_CHAR + && EQ (charset_list, Vcharset_non_preferred_head)) return CHARSET_FROM_ID (charset_unicode); } return (maybe_null ? NULL