Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ea9dd091
Commit
ea9dd091
authored
Jul 13, 2001
by
Gerd Moellmann
Browse files
(get_next_display_element): Use CHAR_STRING_NO_SIGNAL
instead of CHAR_STRING which can signal an error.
parent
176c92e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/xdisp.c
src/xdisp.c
+16
-1
No files found.
src/xdisp.c
View file @
ea9dd091
...
...
@@ -4227,7 +4227,22 @@ get_next_display_element (it)
if (SINGLE_BYTE_CHAR_P (it->c))
str[0] = it->c, len = 1;
else
len = CHAR_STRING (it->c, str);
{
len = CHAR_STRING_NO_SIGNAL (it->c, str);
if (len < 0)
{
/* It's an invalid character, which
shouldn't happen actually, but due to
bugs it may happen. Let's print the char
as is, there's not much meaningful we can
do with it. */
str[0] = it->c;
str[1] = it->c >> 8;
str[2] = it->c >> 16;
str[3] = it->c >> 24;
len = 4;
}
}
for (i = 0; i < len; i++)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment