diff options
| author | Kenichi Handa | 2010-04-20 15:30:26 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-04-20 15:30:26 +0900 |
| commit | c0be27fda00b238ea82e43a8590a96c3a9ae9023 (patch) | |
| tree | 04f2820499f345de64b0d9552919ae1f4bc73e19 /src | |
| parent | 37dcfea079aea4edbdcf175468f780048ed14a6b (diff) | |
| download | emacs-c0be27fda00b238ea82e43a8590a96c3a9ae9023.tar.gz emacs-c0be27fda00b238ea82e43a8590a96c3a9ae9023.zip | |
charset.c (char_charset): Consider Vcharset_non_preferred_head only when the arg CHARSET_LIST is nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/charset.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 17915b318ff..856cc1aec64 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-04-20 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * charset.c (char_charset): Consider Vcharset_non_preferred_head | ||
| 4 | only when the arg CHARSET_LIST is nil. | ||
| 5 | |||
| 1 | 2010-04-19 Eli Zaretskii <eliz@gnu.org> | 6 | 2010-04-19 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (display_line): Don't write beyond the last glyph row in | 8 | * xdisp.c (display_line): Don't write beyond the last glyph row in |
diff --git a/src/charset.c b/src/charset.c index 125c9131687..18c0bbb6310 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -2082,8 +2082,9 @@ char_charset (c, charset_list, code_return) | |||
| 2082 | return charset; | 2082 | return charset; |
| 2083 | } | 2083 | } |
| 2084 | charset_list = XCDR (charset_list); | 2084 | charset_list = XCDR (charset_list); |
| 2085 | if (c <= MAX_UNICODE_CHAR | 2085 | if (! maybe_null |
| 2086 | && EQ (charset_list, Vcharset_non_preferred_head)) | 2086 | && c <= MAX_UNICODE_CHAR |
| 2087 | && EQ (charset_list, Vcharset_non_preferred_head)) | ||
| 2087 | return CHARSET_FROM_ID (charset_unicode); | 2088 | return CHARSET_FROM_ID (charset_unicode); |
| 2088 | } | 2089 | } |
| 2089 | return (maybe_null ? NULL | 2090 | return (maybe_null ? NULL |