all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org
Subject: Re: Cut buffers and character encoding
Date: Sat, 11 Nov 2006 21:40:32 +0900	[thread overview]
Message-ID: <E1Gis9w-0002If-00@etlken> (raw)
In-Reply-To: <87irhn1kvk.fsf@pacem.orebokech.com> (message from Romain Francoise on Fri, 10 Nov 2006 14:39:27 +0100)

In article <87irhn1kvk.fsf@pacem.orebokech.com>, Romain Francoise <romain@orebokech.com> writes:

> Kenichi Handa <handa@m17n.org> 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
handa@m17n.org

  reply	other threads:[~2006-11-11 12:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09  7:39 Cut buffers and character encoding Romain Francoise
2006-11-09 19:10 ` Jan D.
2006-11-09 20:56   ` Romain Francoise
2006-11-10  7:42     ` Jan D.
2006-11-10 10:24       ` Kenichi Handa
2006-11-10 13:39         ` Romain Francoise
2006-11-11 12:40           ` Kenichi Handa [this message]
2006-11-12  5:14             ` Richard Stallman
2006-11-18  2:23               ` Kenichi Handa
2006-11-18 13:18                 ` Jan Djärv
2006-11-20  3:23                   ` Katsumi Yamaoka
2006-11-20  7:44                     ` Jan Djärv
2006-11-20  7:57                       ` Katsumi Yamaoka
2006-11-20 23:58                       ` Richard Stallman
2006-11-21 12:47                         ` Jan Djärv
2006-11-18 16:05                 ` Richard Stallman
2006-11-10 18:41   ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=E1Gis9w-0002If-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.