From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: josh buhl Newsgroups: gmane.emacs.help Subject: Re: emacs, umlauts, x-windows text mark and paste Date: Tue, 16 Dec 2003 12:16:28 +0100 Organization: RHRZ - University of Bonn (Germany) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1071574350 30591 80.91.224.253 (16 Dec 2003 11:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2003 11:32:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 12:32:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AWDRC-0007wz-00 for ; Tue, 16 Dec 2003 12:32:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWEMN-0001uY-O3 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2003 07:31:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news-mue1.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: vpn-nat-02-b.stw-bonn.de Original-X-Trace: f1node01.rhrz.uni-bonn.de 1071573389 22268 131.220.99.52 (16 Dec 2003 11:16:29 GMT) Original-X-Complaints-To: usenet@f1node01.rhrz.uni-bonn.de Original-NNTP-Posting-Date: 16 Dec 2003 11:16:29 GMT 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 X-Accept-Language: en In-Reply-To: X-Enigmail-Version: 0.76.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Original-Xref: shelby.stanford.edu gnu.emacs.help:119376 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15315 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15315 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?