diff options
| author | Eli Zaretskii | 2018-05-05 11:45:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-05-05 11:45:37 +0300 |
| commit | bbe2cadc544e63e9378350621887f8fb9bbcc236 (patch) | |
| tree | 96e9d84caf357f1cc812c50cbd06382110ec44bd | |
| parent | 7b1026cbf48fa8a3f31497910f696a5ba28476cb (diff) | |
| download | emacs-bbe2cadc544e63e9378350621887f8fb9bbcc236.tar.gz emacs-bbe2cadc544e63e9378350621887f8fb9bbcc236.zip | |
Fix encoding of characters when using GB18030 fonts
* lisp/international/fontset.el (font-encoding-alist): Fix the
GB18030 entry to encode characters correctly when passing them to
the xfont back-end. (Bug#31315) See also
http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg00754.html.
| -rw-r--r-- | lisp/international/fontset.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index 4a7b7547919..0b6dfcabd81 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -53,7 +53,10 @@ | |||
| 53 | ("ascii-0$" . ascii) | 53 | ("ascii-0$" . ascii) |
| 54 | ("gb2312.1980" . chinese-gb2312) | 54 | ("gb2312.1980" . chinese-gb2312) |
| 55 | ("gbk" . chinese-gbk) | 55 | ("gbk" . chinese-gbk) |
| 56 | ("gb18030" . (unicode . nil)) | 56 | ;; GB18030 needs the characters encoded by gb18030, but a |
| 57 | ;; gb18030 font doesn't necessarily support all of the GB18030 | ||
| 58 | ;; characters. | ||
| 59 | ("gb18030" . (gb18030 . unicode)) | ||
| 57 | ("jisx0208.1978" . japanese-jisx0208-1978) | 60 | ("jisx0208.1978" . japanese-jisx0208-1978) |
| 58 | ("jisx0208" . japanese-jisx0208) | 61 | ("jisx0208" . japanese-jisx0208) |
| 59 | ("jisx0201" . jisx0201) | 62 | ("jisx0201" . jisx0201) |