+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
/* 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)
break;
}
}
-
+ if (i > 0x10FFFF)
+ error ("Non-Unicode character: 0x%x", i);
return i;
}