help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: replacing characters and whacky trans-buffer conversion


From: Peter Dyballa
Subject: Re: replacing characters and whacky trans-buffer conversion
Date: Fri, 9 Mar 2007 00:14:35 +0100


Am 08.03.2007 um 21:43 schrieb ken:

^[%GX\200\223^[%@

Yes, this is the scrap I found in GNU Emacs 21.x in Fedora Core 1 when I pasted some contents from some other GNOME application!

Since this Linux PC was just my desktop machine and my /real/ Emacsen were running on Sun servers my workaround was very simple: vi(m) in some terminal emulation. Sometimes a simple echo or cat was my friend ...

I never studied GNOME that much that I found a clue. Could be it helps to set in login and any other shell the environment variables LC_ALL and LANG to some utf-8 based value. What I also observed, is that parts of the ANSI like ESC sequences changed when I copied from differently encoded files. So it's actually, IMO, not the *real* X selection you are pasting, but some GNOME selection that also tells all GNOME applications how the text you paste is encoded – which is clever!

--
Greetings

  Pete

Make it simple, as simple as possible but no simpler.
                              Albert Einstein






reply via email to

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