diff options
| author | Kenichi Handa | 2004-08-17 11:49:18 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-08-17 11:49:18 +0000 |
| commit | 82215ce9f322148b0dbb43af4fc5cd7bb142b479 (patch) | |
| tree | 207c4dc7107424f2d6f0ba48ee1f187f9d12c31d /src | |
| parent | 1322bdcbf48485396604a6196ad953e4ac96ab19 (diff) | |
| download | emacs-82215ce9f322148b0dbb43af4fc5cd7bb142b479.tar.gz emacs-82215ce9f322148b0dbb43af4fc5cd7bb142b479.zip | |
(Fdeclare_equiv_charset): Fix handing of CHARS.
(Fiso_charset): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c index 97f1c701cf8..e0bfcb5eb76 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -1319,11 +1319,12 @@ if CHARSET is designated instead. */) | |||
| 1319 | Lisp_Object dimension, chars, final_char, charset; | 1319 | Lisp_Object dimension, chars, final_char, charset; |
| 1320 | { | 1320 | { |
| 1321 | int id; | 1321 | int id; |
| 1322 | int chars_flag; | ||
| 1322 | 1323 | ||
| 1323 | CHECK_CHARSET_GET_ID (charset, id); | 1324 | CHECK_CHARSET_GET_ID (charset, id); |
| 1324 | check_iso_charset_parameter (dimension, chars, final_char); | 1325 | check_iso_charset_parameter (dimension, chars, final_char); |
| 1325 | 1326 | chars_flag = XINT (chars) == 96; | |
| 1326 | ISO_CHARSET_TABLE (XINT (dimension), XINT (chars), XINT (final_char)) = id; | 1327 | ISO_CHARSET_TABLE (XINT (dimension), chars_flag, XINT (final_char)) = id; |
| 1327 | return Qnil; | 1328 | return Qnil; |
| 1328 | } | 1329 | } |
| 1329 | 1330 | ||
| @@ -1917,9 +1918,11 @@ DIMENSION, CHARS, and FINAL-CHAR. */) | |||
| 1917 | Lisp_Object dimension, chars, final_char; | 1918 | Lisp_Object dimension, chars, final_char; |
| 1918 | { | 1919 | { |
| 1919 | int id; | 1920 | int id; |
| 1921 | int chars_flag; | ||
| 1920 | 1922 | ||
| 1921 | check_iso_charset_parameter (dimension, chars, final_char); | 1923 | check_iso_charset_parameter (dimension, chars, final_char); |
| 1922 | id = ISO_CHARSET_TABLE (XFASTINT (dimension), XFASTINT (chars), | 1924 | chars_flag = XFASTINT (chars) == 96; |
| 1925 | id = ISO_CHARSET_TABLE (XFASTINT (dimension), chars_flag, | ||
| 1923 | XFASTINT (final_char)); | 1926 | XFASTINT (final_char)); |
| 1924 | return (id >= 0 ? CHARSET_NAME (CHARSET_FROM_ID (id)) : Qnil); | 1927 | return (id >= 0 ? CHARSET_NAME (CHARSET_FROM_ID (id)) : Qnil); |
| 1925 | } | 1928 | } |