Skip to content

GBK broken? #31

@eugeneia

Description

@eugeneia

I have the following test case that shows the GBK encoding to be broken:

echo "高怡雯" | iconv -t gbk -o /tmp/gao
# in Clozure CL
(let ((v (make-array 6 :element-type '(unsigned-byte 8))))
           (with-open-file (in "/tmp/gao"
                               :element-type '(unsigned-byte 8))
             (read-sequence v in)
             v))
→ #(184 223 226 249 246 169)
(babel:octets-to-string * :encoding :gbk)
→ "高恂霎"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions