unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robin Hu <huxw@knight.6test.edu.cn>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs failes to communicate with other X clients
Date: Mon, 26 May 2003 06:06:52 +0000	[thread overview]
Message-ID: <usmr21bsz.fsf@knight.6test.edu.cn> (raw)
In-Reply-To: <200305260454.NAA13809@etlken.m17n.org> (Kenichi Handa's message of "Mon, 26 May 2003 13:54:37 +0900 (JST)")

>>>>> "Kenichi" == Kenichi Handa <handa@m17n.org> writes:

    Kenichi> XmbTextPropertyToTextList can handle only such
    Kenichi> compound-text that contains characters supported in the
    Kenichi> current X locale.  So, in your way, if you are in GBK
    Kenichi> locale, Emacs can't receive, for instance, Hangul chacaters
    Kenichi> even if compound-text can correctly encode Hangul
    Kenichi> characters and Emacs itself can handle Hangul in any
    Kenichi> locales.

    Thank you Kenichi for your answering ;-) But I still have some
    different ideas here.
    
    Of course Hangul characters can not be received when we set locale
    to zh_CN.GBK, but I think this is the right behavior. For example,
    while I set keyboard-coding-system to chinese-gbk, I can not input
    Hangul characters, because it's my responsibility to set correct
    keyboard coding system for chinese input. So I think that's also my
    responsibility to set correct locale for X paste. 

    Another problem with current implementation is, some characters can
    be encoded in different char-settings. For example, I set file
    coding system to chinese-iso-8bit, and selection coding system to
    compound-text-with-extension, and copy/paste a very long chinese
    article from mozilla. Every thing seems to go fine, but this article
    just cannot be saved. This is because X encode some characters as if
    they are not chinese-iso-8bit characters, but emacs decode them to
    emacs-mule successfully, and finally file coding system cannot
    encode emacs-mule to chinese-iso-8bit.

    Kenichi> By the way, the coding system chinese-gbk is not yet
    Kenichi> supported in the current Emacs.  Or, are you using
    Kenichi> emacs-unicode?

    Chinese-gbk is my extension to Emacs, I believe I have post it in
    m17n's maillist. I can read/write gbk encoding file, and unicode
    file with utf-translate-gbk-mode turned on. Everything goes fine,
    except copy/paste in X (ntEmacs is fine). ;-(

  reply	other threads:[~2003-05-26  6:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23  9:19 Emacs failes to communicate with other X clients Robin Hu
2003-05-23 17:22 ` Eli Zaretskii
2003-05-24 11:10   ` Robin Hu
2003-05-24 17:38     ` Eli Zaretskii
2003-05-26  2:56       ` Robin Hu
2003-05-26  4:54         ` Kenichi Handa
2003-05-26  6:06           ` Robin Hu [this message]
2003-05-26  7:09             ` Kenichi Handa
2003-05-26  8:42               ` Robin Hu
2003-05-27 12:26                 ` Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=usmr21bsz.fsf@knight.6test.edu.cn \
    --to=huxw@knight.6test.edu.cn \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).