emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 22.1.90 can't save chinese-gb2312 file


From: Jason Rumney
Subject: Re: Emacs 22.1.90 can't save chinese-gb2312 file
Date: Fri, 01 Feb 2008 08:46:31 +0000
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Kenichi Handa wrote:
> In article <address@hidden>, "Zhang Wei" <address@hidden> writes:
>
>   
>> This bug crept in due to the changes of w32term.c since 2007-12-12, I
>> think, when I revert the changes of this file, the bug is gone.
>>     
>
> Are you sure?  It's quite surprising that the code in
> w32term.c affects encoding of characters.
>   


The change affects how keyboard input is handled. Before the change,
input was sent in gb2312 encoding one byte at a time, and encoded-kbd
was used to decode the input. After the change, input is sent in
mule-unicode-* charsets where possible.

So the punctuation has changed in representation from gb2312 to
mule-unicode-2500-33ff, while Hanzi is outside the range covered by the
mule-unicode charsets, so continues to be sent as gb2312.

Emacs knows how to do the conversion, as writing the file as utf-8 then
reading and writing out as gb2312 is reported to work, it just doesn't
do the conversion in this case.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]