Fix encoding of characters when using GB18030 fonts
authorEli Zaretskii <eliz@gnu.org>
Sat, 5 May 2018 08:45:37 +0000 (11:45 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 5 May 2018 08:45:37 +0000 (11:45 +0300)
* 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.

lisp/international/fontset.el

index 4a7b7547919ca1afd1c3a69192e498c73f0873af..0b6dfcabd81776eaa89132e8e9750c01b778e856 100644 (file)
        ("ascii-0$" . ascii)
        ("gb2312.1980" . chinese-gb2312)
        ("gbk" . chinese-gbk)
-       ("gb18030" . (unicode . nil))
+        ;; GB18030 needs the characters encoded by gb18030, but a
+        ;; gb18030 font doesn't necessarily support all of the GB18030
+        ;; characters.
+       ("gb18030" . (gb18030 . unicode))
        ("jisx0208.1978" . japanese-jisx0208-1978)
        ("jisx0208" . japanese-jisx0208)
        ("jisx0201" . jisx0201)