[Top][All Lists]

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

Re: can't paste non-Latin-1 text to Emacs 21.2

From: Kenichi Handa
Subject: Re: can't paste non-Latin-1 text to Emacs 21.2
Date: Tue, 30 Mar 2004 11:36:47 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Dave Love <address@hidden> writes:

> Pasting non-Latin-1 text under X from the development version to 21.2
> (Debian stable) fails.  E.g. "Česky" appears as "address@hidden"
> (rendering the non-ASCII characters in ASCII for mail).

Although "Č" in your mail arrived at me as charset
iso-8859-4, and thus it can succcessfully pasted into 21.2,
perhaps what you did was to paste mule-unicode-0100-24ff
character into 21.2, right?

Then, yes, the latest code encodes such a character by using
ESC % G ... ESC % @ (XFree86 extension for UTF-8 encoding)
because that is more widely accepted with the other clients
than ESC $ - 1 ... (designating the private charset
mule-unicode-0100-24ff) even though 21.3 and the prior
doesn't recognize it.  This behaviour is controlled by the
function ctext-non-standard-encodings-table.  This function
has this code now:

(defun ctext-non-standard-encodings-table ()
  (let ((table (make-char-table 'translation-table)))
    (aset table (make-char 'mule-unicode-0100-24ff) 'utf-8)
    (aset table (make-char 'mule-unicode-2500-33ff) 'utf-8)
    (aset table (make-char 'mule-unicode-e000-ffff) 'utf-8)

Another idea is to encode such characters to some of legacy
charsets that are listed as "Approved Standard Encoding".
I'll put it in my todo list.  I would appreciate if you or
someone else can work on it.

Ken'ichi HANDA

reply via email to

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