unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs failes to communicate with other X clients
Date: Fri, 23 May 2003 20:22:08 +0300	[thread overview]
Message-ID: <3405-Fri23May2003202207+0300-eliz@elta.co.il> (raw)
In-Reply-To: <u65o2nhpt.fsf@knight.6test.edu.cn> (message from Robin Hu on Fri, 23 May 2003 09:19:10 +0000)

> From: Robin Hu <huxw@knight.6test.edu.cn>
> Date: Fri, 23 May 2003 09:19:10 +0000
> 
>    For example, a chinese word is encoded in compound text
>    as : "^[$(AV1^[%/2\200\210gbk-0^B\351F;y", as I have provide gbk
>    coding system myself, emacs can decode the first two characters
>    correctly, but it miss the last character, because it doesn't know
>    "\351F;y" should be decoded follow "^[$(AV1".
> 
>    I try to correct this bug myself, but it seems quite diffcult in the
>    exist compound-text-with-extension coding system.  ;-(

I'm not sure I understand correctly the situation, but IIRC, gbk is
not supported by compound-text-with-extensions.  If you want to add
such a support, you need to modify the alist of non-standard ICCCM
encodings used by Emacs to match known coding-systems to the encoding
name mentioned in the X selection encoding.  See mule.el for the
definitions of those alists.

>    I'd like to know how about leaving this decoding stuff to X itself, I
>    knew XmbText family can do this kind of thing.

How can Emacs leave that to X?  We need to convert the X selection
text into the internal representation of characters used by Emacs; X
knows nothing about that representation.  Am I missing something?

  reply	other threads:[~2003-05-23 17:22 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 [this message]
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
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=3405-Fri23May2003202207+0300-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    --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).