all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Romain Francoise <romain@orebokech.com>
Subject: Cut buffers and character encoding
Date: Thu, 09 Nov 2006 08:39:34 +0100	[thread overview]
Message-ID: <87y7qldq6h.fsf@pacem.orebokech.com> (raw)

Hi,

I received a bug report about Emacs 22.0.90 stating that Emacs doesn't
do charset conversion when receiving text from a cut buffer.  From the
report:

,----
| When I paste the cut buffer in an Emacs window in UTF-8 locales, Emacs
| doesn't do any charset conversion. This problem occurs with both X and
| GTK versions.
|
| To reproduce the problem:
| 1. In UTF-8 locales: emacs -q
| 2. Open an xterm.
| 3. In the xterm, type 'éèê'.
| 4. Select 'éèê' in the xterm.
| 5. Quit the xterm (now, 'éèê' is no longer in the primary selection,
|    only in the cut buffer, which Emacs supports).
| 6. Paste in Emacs (middle mouse button).
|
| I get:
|
| \351\350\352
|
| instead of:
|
| éèê
`----

This is in apparent contradiction to what the docstring of the
`selection-coding-system' variable says:

,----[ C-h v selection-coding-system RET ]
| Documentation:
| Coding system for communicating with other X clients.
| When sending or receiving text via cut_buffer, selection, and clipboard,
| the text is encoded or decoded by this coding system.
`----

Using xcutsel to move the cut buffer back to a primary selection shows
that the content itself is fine, so the problem lies with Emacs.

More info here: http://bugs.debian.org/397447

Thanks,

-- 
Romain Francoise <romain@orebokech.com> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter

             reply	other threads:[~2006-11-09  7:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09  7:39 Romain Francoise [this message]
2006-11-09 19:10 ` Cut buffers and character encoding 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
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=87y7qldq6h.fsf@pacem.orebokech.com \
    --to=romain@orebokech.com \
    /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.