[Top][All Lists]

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

Re: Cut buffers and character encoding

From: Kenichi Handa
Subject: Re: Cut buffers and character encoding
Date: Sat, 11 Nov 2006 21:40:32 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, Romain Francoise <address@hidden> writes:

> Kenichi Handa <address@hidden> writes:
> > I vaguely remember that I changed cut-buffer decoding to use
> > locale-coding-system (if any) instead of iso-8859-1 upon a
> > bug report from someone.  He claimed that many X
> > applications store a data encoded by the current locale in
> > cut-buffer (even if that doesn't conform to ICCCM), thus it
> > is better that Emacs also decodes it by the coding system
> > specified by the locale.  Even xterm, when run under, for
> > instance, cs_CS.ISO8859-2 locale, stores ISO8859-2
> > characters as is in cut buffer.

> Would it be feasible to use `detect-coding-string' to decide which
> encoding to use?

I think tring locale-coding-system at first, and if that
yields undecoded eight-bit characters, decoding by
iso-8859-1 is good.

Kenichi Handa

reply via email to

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