Subject: bug#23628: 25.1.50; wrong saving of unicode characters into kill ring

From: Eli Zaretskii <[email-masked]>
Date: Fri, 27 May 2016 11:42:53 +0300

> From: Peter Münster <[email-masked]>
> Cc: [email-masked]
> Date: Fri, 27 May 2016 10:28:36 +0200
> 
> In GNU Emacs 25.1.50.1 (x86_64-suse-linux-gnu, GTK+ Version 2.24.30)
>  of 2016-05-25 built on micropit
> Repository revision: 1ee91bf89176251f6e399c8436dca0248cdd6f6b
> Windowing system distributor 'The X.Org Foundation', version 11.0.11702000
> System Description:	openSUSE Leap 42.1 (x86_64)
> --8<---------------cut here---------------end--------------->8---
> 
> 
> > How did you type "€",
> 
> "Alt Gr + e" because I have this line in my .Xmodmap:
> keycode  26 = e E EuroSign EuroSign EuroSign EuroSign
> 
> But "M-x insert-char" and then "euro sign" works too.
> 
> 
> > and what does Emacs say when you type "C-u C-x =" with the cursor on
> > that character?
> 
> --8<---------------cut here---------------start------------->8---
>              position: 35 of 36 (94%), column: 1
>             character: € (displayed as €) (codepoint 8364, #o20254, #x20ac)
>     preferred charset: unicode (Unicode (ISO10646))
> code point in charset: 0x20AC
>                script: symbol
>                syntax: _ 	which means: symbol
>              category: .:Base, c:Chinese, h:Korean, j:Japanese
>              to input: type "C-x 8 RET 20ac" or "C-x 8 RET EURO SIGN"
>           buffer code: #xE2 #x82 #xAC
>             file code: #xE2 #x82 #xAC (encoded by coding system prefer-utf-8-unix)
>               display: by this font (glyph code)
>     xft:-adobe-Source Code Pro-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#x446)
> 
> Character code properties: customize what to show
>   name: EURO SIGN
>   general-category: Sc (Symbol, Currency)
>   decomposition: (8364) ('€')
> 
> There are text properties here:
>   fontified            t
> --8<---------------cut here---------------end--------------->8---

Strange.  Do you have some clipboard-related agent active that tries
to do something with stuff pasted from the clipboard?  What happens if
you set interprogram-paste-function to always return nil?