diff options
Diffstat (limited to 'src/charset.c')
| -rw-r--r-- | src/charset.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/charset.c b/src/charset.c index c4699dcb0a7..e7435c292e2 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -1436,7 +1436,7 @@ check_iso_charset_parameter (Lisp_Object dimension, Lisp_Object chars, Lisp_Obje | |||
| 1436 | { | 1436 | { |
| 1437 | CHECK_NATNUM (dimension); | 1437 | CHECK_NATNUM (dimension); |
| 1438 | CHECK_NATNUM (chars); | 1438 | CHECK_NATNUM (chars); |
| 1439 | CHECK_NATNUM (final_char); | 1439 | CHECK_CHARACTER (final_char); |
| 1440 | 1440 | ||
| 1441 | if (XINT (dimension) > 3) | 1441 | if (XINT (dimension) > 3) |
| 1442 | error ("Invalid DIMENSION %"pEd", it should be 1, 2, or 3", | 1442 | error ("Invalid DIMENSION %"pEd", it should be 1, 2, or 3", |
| @@ -1444,12 +1444,8 @@ check_iso_charset_parameter (Lisp_Object dimension, Lisp_Object chars, Lisp_Obje | |||
| 1444 | if (XINT (chars) != 94 && XINT (chars) != 96) | 1444 | if (XINT (chars) != 94 && XINT (chars) != 96) |
| 1445 | error ("Invalid CHARS %"pEd", it should be 94 or 96", XINT (chars)); | 1445 | error ("Invalid CHARS %"pEd", it should be 94 or 96", XINT (chars)); |
| 1446 | if (XINT (final_char) < '0' || XINT (final_char) > '~') | 1446 | if (XINT (final_char) < '0' || XINT (final_char) > '~') |
| 1447 | { | 1447 | error ("Invalid FINAL-CHAR %c, it should be `0'..`~'", |
| 1448 | unsigned char str[MAX_MULTIBYTE_LENGTH + 1]; | 1448 | (int)XINT (final_char)); |
| 1449 | int len = CHAR_STRING (XINT (chars), str); | ||
| 1450 | str[len] = '\0'; | ||
| 1451 | error ("Invalid FINAL-CHAR %s, it should be `0'..`~'", str); | ||
| 1452 | } | ||
| 1453 | } | 1449 | } |
| 1454 | 1450 | ||
| 1455 | 1451 | ||