diff options
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index e444830c99a..6ae7a0d8ba0 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -2585,7 +2585,8 @@ read_escape (Lisp_Object readcharfun, bool stringp) | |||
| 2585 | want. */ | 2585 | want. */ |
| 2586 | int digit = char_hexdigit (c); | 2586 | int digit = char_hexdigit (c); |
| 2587 | if (digit < 0) | 2587 | if (digit < 0) |
| 2588 | error ("Non-hex digit used for Unicode escape"); | 2588 | error ("Non-hex character used for Unicode escape: %c (%d)", |
| 2589 | c, c); | ||
| 2589 | i = (i << 4) + digit; | 2590 | i = (i << 4) + digit; |
| 2590 | } | 2591 | } |
| 2591 | if (i > 0x10FFFF) | 2592 | if (i > 0x10FFFF) |