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

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

Re: emacs, umlauts, x-windows text mark and paste


From: josh buhl
Subject: Re: emacs, umlauts, x-windows text mark and paste
Date: Tue, 16 Dec 2003 12:16:28 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4; MultiZilla v1.4.0.4A) Gecko/20031107 Debian/1.5-3

So, I've narrowed it down further. It seems to be an emacs/gtk+ 2 problem. Emacs has a problem pasting in text with non-ascii characters from any of the apps which are compiled with gtk+ 2. Emacs inserts the text properly when it has been freshly marked in kword, kate, xedit, or open office writer, and barfs if the same text has been marked in mozilla, gedit, or *any gtk+ 2* dialog like any of the gnome dialogs. So I can mark a text in mozilla, paste it into xedit, _remark_ it and paste it into emacs, and it works, but if I don't remark, emacs barfs.

I'm sure this is related to this general problem:

ISO 14755 specifies using Ctrl+Shift+hex-digit to input unicode.
gtk2 implemented ISO 14755 input method.

There are several apps which are now having problems with this (see
http://bugzilla.mozilla.org/show_bug.cgi?id=186789 for example.)


The garbaged text correspond exactly to the unicode hex encodings for the characters. for example hex 00DF is ß and emacs displays the pasted in ß as \x{00DF}. This certainly isn't a coincidence. Why does it work if I login with the session language set to german, but not if I set LC_ALL?


-jb



josh buhl wrote:

On the page I've been using for test purposes Mozilla says iso-8559-1, which emacs should be able to handle, but this has actually nothing to do with mozilla. It's a problem with how the text is being put in the x-windows systems clipboard and how emacs is reading it back out. Only emacs seems to have a problem with this. Running my usual C (en) locale, i can mark and copy this same german text back and forth between open office writer, gedit, kword, kedit, and even the ancient xedit. They all get the special characters properly, only Emacs barfs, and Emacs is otherwise (in my humble opinion) the most advanced editor in the world, but it can't seem to get a simple copy and paste right. What gives?



reply via email to

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