aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2011-06-18 17:33:14 +0300
committerEli Zaretskii2011-06-18 17:33:14 +0300
commitca3122a07a44f375ef47dcec44b88b09dc981f47 (patch)
treea726bbee4e1f98175672927ad3794a5feb7d1d3d
parentcc7245e4b5d277bff1cb5cf9af249955ff1f8e10 (diff)
downloademacs-ca3122a07a44f375ef47dcec44b88b09dc981f47.tar.gz
emacs-ca3122a07a44f375ef47dcec44b88b09dc981f47.zip
Fix a gratuitous crash in emacs -nw with iso-safe terminal encoding.
src/term.c (produce_glyphs): Add IT_GLYPHLESS to the values of it->what accepted by the xassert. Fixes a gratuitous crash in an Emacs built with -DXASSERTS.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/term.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b560528a1d6..2ebd593d00e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12011-06-18 Eli Zaretskii <eliz@gnu.org> 12011-06-18 Eli Zaretskii <eliz@gnu.org>
2 2
3 * term.c (produce_glyphs): Add IT_GLYPHLESS to the values of
4 it->what accepted by the xassert. Fixes a gratuitous crash in an
5 Emacs built with -DXASSERTS.
6
3 * .gdbinit (xvectype, xvector, xcompiled, xchartable, xboolvector) 7 * .gdbinit (xvectype, xvector, xcompiled, xchartable, xboolvector)
4 (xpr, xfont, xbacktrace): Use "header.size" when accessing vectors 8 (xpr, xfont, xbacktrace): Use "header.size" when accessing vectors
5 and vector-like objects. 9 and vector-like objects.
diff --git a/src/term.c b/src/term.c
index c68228cc51a..ab0bc1a4277 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1546,6 +1546,7 @@ produce_glyphs (struct it *it)
1546 /* Nothing but characters are supported on terminal frames. */ 1546 /* Nothing but characters are supported on terminal frames. */
1547 xassert (it->what == IT_CHARACTER 1547 xassert (it->what == IT_CHARACTER
1548 || it->what == IT_COMPOSITION 1548 || it->what == IT_COMPOSITION
1549 || it->what == IT_GLYPHLESS
1549 || it->what == IT_STRETCH); 1550 || it->what == IT_STRETCH);
1550 1551
1551 if (it->what == IT_STRETCH) 1552 if (it->what == IT_STRETCH)