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

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

bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads


From: Jan Djärv
Subject: bug#6802: 24.0.50; Yanking non-ASCII text from other X application leads to unicode escapes
Date: Mon, 09 Aug 2010 19:26:39 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2



Eli Zaretskii skrev 2010-08-09 18.34:

Why does x-get-selection default to 'STRING?  Is that sensible
behavior?

-  (let ((primary (x-get-selection 'PRIMARY)))
+  (let ((primary (x-get-selection 'PRIMARY 'TEXT)))

Would it make sense to have x-get-selection default to 'TEXT instead?

TEXT can be in any encoding which can make it diffcult. Nowdays I think the default should be UTF8_STRING, and if that fails, try TEXT and then STRING.

But I think the application should not offer STRING (which implies Latin-1) if the data isn't in latin-1.

        Jan D.





reply via email to

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