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
a808f22d
Commit
a808f22d
authored
Feb 27, 2009
by
Kenichi Handa
Browse files
(read_escape): Signal an error for invalid \UXXXXXXXX.
parent
b61137ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/lread.c
src/lread.c
+3
-2
No files found.
src/ChangeLog
View file @
a808f22d
2009-02-27 Kenichi Handa <handa@m17n.org>
* lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2009-02-27 Chong Yidong <cyd@stupidchicken.com>
* font.c (font_style_to_value): Set value for unknown symbols to
...
...
src/lread.c
View file @
a808f22d
...
...
@@ -2205,7 +2205,7 @@ read_escape (readcharfun, stringp)
/* A Unicode escape. We only permit them in strings and characters,
not arbitrarily in the source code, as in some other languages. */
{
int i = 0;
unsigned
int
i
=
0
;
int
count
=
0
;
while
(
++
count
<=
unicode_hex_count
)
...
...
@@ -2222,7 +2222,8 @@ read_escape (readcharfun, stringp)
break
;
}
}
if
(
i
>
0x10FFFF
)
error
(
"Non-Unicode character: 0x%x"
,
i
);
return
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