[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-unicode-2: copy & paste problem of non standard encoding ctext
From: |
Zhang Wei |
Subject: |
Re: emacs-unicode-2: copy & paste problem of non standard encoding ctext |
Date: |
Mon, 06 Mar 2006 21:34:37 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Kenichi Handa <address@hidden> writes:
> I'm very confused. You at first sent us the patch for
> decoding "gbk-0" encoded compound text. So, I thought
> crxvt-gb also accepts such an encoding, and thus committed
> the recent change for making ctext-pre-write-convsion
> produce correct "gbk-0" extended segment (but only for
> characters that gb2312 designation can't be used). As you
> wrote "a ctext required software such as crxvt-gb", I
> thought crxvt-gb at least accept gb2312 designation
> sequence.
At the very begining, I can't paste any chinese characters from emacs
to crxvt-gb, nor can I paste from crxvt-gb to emacs (zh_CN.GBK
locale). With the patch I send, emacs can accept from crxvt-gb, but
still can't paste to it.
I don't know is if crxvt-gb accept "gb2312" and "gbk-0" mixed ctext.
> But, it seems that your crxvt-gb doesn't accept such an
> encoding. Please tell me what kind of encoding does it
> accept, for instance, for chinese word "nihao" (hello) in
> exact byte sequence.
It seems that crxvt-gb accept gb2312 designation sequence under
zh_CN.GB locale, and "gbk-0" under zh_CN.GBK locale, with emacs22, but
not with emacs-unicode-2.
I really don't know how to debug the "ctext-pre-write-conversion" and
"ctext-post-read-conversion" functions, edebug seems don't work for
them, so it hard for me to figure out the exact byte sequence.
> By the way, I've just installed debian package "xcingb"
> (which include crxvt-gb-2.3). But, when I run it with
> LANG=zh_CN.bgk, it doesn't send/accept ctext to/from Emacs.
> It only sends/accepts GBK encoded text (or perhaps it's just
> GB2312 encoded text). When I run it with --version, it
> says:
> rxvt Version 2.10
> [...]
>
> Is it different from what you are using?
The crxvt-gb that I installed comes from the "rxvt-ml" debian package.
$ crxvt-gb -help
Usage v2.6.4 : (XPM,utmp,menubar,Chinese (GB),graphics,XGetDefaults)