From 787bf31f8aa79a92e155466647f130d690eef1f1 Mon Sep 17 00:00:00 2001 From: Max Rottenkolber Date: Wed, 4 Apr 2018 13:45:29 +0200 Subject: [PATCH] Add aliases :gb2312 :gb18030 to :gbk encoding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GB 2312, GB 18030 and GBK 1.0 are compatible encodings, see https://en.wikipedia.org/wiki/GB_18030 --- src/enc-gbk.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/enc-gbk.lisp b/src/enc-gbk.lisp index 816f18c..3dc2519 100644 --- a/src/enc-gbk.lisp +++ b/src/enc-gbk.lisp @@ -39,7 +39,8 @@ "GBK is an extension of the GB2312 character set for simplified Chinese characters, used in the People's Republic of China." :max-units-per-char 4 - :literal-char-code-limit #x80) + :literal-char-code-limit #x80 + :aliases '(:gb2312 :gb18030)) (define-condition invalid-gbk-byte (character-decoding-error) ()