GNU bug report logs - #23628
25.1.50; wrong saving of unicode characters into kill ring

Previous Next

Package: emacs;

Reported by: Peter Münster <pmlists <at> free.fr>

Date: Fri, 27 May 2016 06:58:02 UTC

Severity: normal

Found in version 25.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23628 in the body.
You can then email your comments to 23628 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 06:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Münster <pmlists <at> free.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 May 2016 06:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Münster <pmlists <at> free.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.50; wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 08:57:22 +0200
Hi,

When inserting "€" in a buffer, killing it, than reinserting (yank) it,
I get "?" instead of "€".

This is needed for reproducing:

1.) Call "LC_ALL=en_GB.utf8 emacs -Q"

2.) Evaluate the following line:

    (setq select-active-regions nil)

3.) Type "€"

4.) Kill the "€" (select it and than C-w)

5.) C-y

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11

Important settings:
  value of $LC_ALL: en_GB.utf8
  value of $LC_CTYPE: en_GB.utf8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

TIA for investigation,
-- 
           Peter




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 08:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Münster <pmlists <at> free.fr>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 10:59:28 +0300
> From: Peter Münster <pmlists <at> free.fr>
> Date: Fri, 27 May 2016 08:57:22 +0200
> 
> When inserting "€" in a buffer, killing it, than reinserting (yank) it,
> I get "?" instead of "€".

Not reproducible on my system.  (Btw, you omitted the details about
your OS and build.)

How did you type "€", and what does Emacs say when you type "C-u C-x ="
with the cursor on that character?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 08:29:02 GMT) Full text and rfc822 format available.

Message #11 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Peter Münster <pmlists <at> free.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 10:28:36 +0200
On Fri, May 27 2016, Eli Zaretskii wrote:

> Not reproducible on my system.  (Btw, you omitted the details about
> your OS and build.)

Sorry, by mistake I killed too much...

--8<---------------cut here---------------start------------->8---
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---


-- 
           Peter




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 08:43:01 GMT) Full text and rfc822 format available.

Message #14 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Münster <pmlists <at> free.fr>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 11:42:53 +0300
> From: Peter Münster <pmlists <at> free.fr>
> Cc: 23628 <at> debbugs.gnu.org
> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 08:44:01 GMT) Full text and rfc822 format available.

Message #17 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Münster <pmlists <at> free.fr>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 11:43:40 +0300
> From: Peter Münster <pmlists <at> free.fr>
> Cc: 23628 <at> debbugs.gnu.org
> 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---

Oh, one more question: what is the value of selection-coding-system?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 08:59:01 GMT) Full text and rfc822 format available.

Message #20 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Peter Münster <pmlists <at> free.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 10:58:32 +0200
On Fri, May 27 2016, Eli Zaretskii wrote:

> Strange.  Do you have some clipboard-related agent active that tries
> to do something with stuff pasted from the clipboard?

xcb is running. (no problem since 1995...)

I've killed it, but that does not change anything.


> What happens if you set interprogram-paste-function to always return
> nil?

Indeed, this solves the problem. But it's no more possible to insert
text from other programs with C-y.

-- 
           Peter




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 09:03:02 GMT) Full text and rfc822 format available.

Message #23 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Peter Münster <pmlists <at> free.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 11:02:39 +0200
On Fri, May 27 2016, Eli Zaretskii wrote:

> Oh, one more question: what is the value of selection-coding-system?

nil

-- 
           Peter




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 09:30:03 GMT) Full text and rfc822 format available.

Message #26 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Peter Münster <pmlists <at> free.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 11:29:16 +0200
On Fri, May 27 2016, Peter Münster wrote:

> On Fri, May 27 2016, Eli Zaretskii wrote:
>
>> Strange.  Do you have some clipboard-related agent active that tries
>> to do something with stuff pasted from the clipboard?
>
> xcb is running. (no problem since 1995...)

I've found another one: vncviewer

The copy-paste-problem happens only, when at least one vncviewer is
running.

After further investigation, copy-paste in xterm has the same problem,
that means, that this is not (or not only) an emacs-bug.

I'll report it to the vncviewer list.

Sorry about the needless bug-report.
-- 
           Peter




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23628; Package emacs. (Fri, 27 May 2016 09:44:01 GMT) Full text and rfc822 format available.

Message #29 received at 23628 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Münster <pmlists <at> free.fr>
Cc: 23628 <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 12:43:09 +0300
> From: Peter Münster <pmlists <at> free.fr>
> Cc: 23628 <at> debbugs.gnu.org
> Date: Fri, 27 May 2016 10:58:32 +0200
> 
> On Fri, May 27 2016, Eli Zaretskii wrote:
> 
> > Strange.  Do you have some clipboard-related agent active that tries
> > to do something with stuff pasted from the clipboard?
> 
> xcb is running. (no problem since 1995...)
> 
> I've killed it, but that does not change anything.

Right, as expected.

> > What happens if you set interprogram-paste-function to always return
> > nil?
> 
> Indeed, this solves the problem.

Strange, AFAIR Emacs is not supposed to get text from the clipboard if
the text there came from the same Emacs session.  It should take the
text from the kill-ring.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 27 May 2016 09:44:02 GMT) Full text and rfc822 format available.

Notification sent to Peter Münster <pmlists <at> free.fr>:
bug acknowledged by developer. (Fri, 27 May 2016 09:44:02 GMT) Full text and rfc822 format available.

Message #34 received at 23628-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Münster <pmlists <at> free.fr>
Cc: 23628-done <at> debbugs.gnu.org
Subject: Re: bug#23628: 25.1.50;
 wrong saving of unicode characters into kill ring
Date: Fri, 27 May 2016 12:43:51 +0300
> From: Peter Münster <pmlists <at> free.fr>
> Cc: 23628 <at> debbugs.gnu.org
> Date: Fri, 27 May 2016 11:29:16 +0200
> 
> On Fri, May 27 2016, Peter Münster wrote:
> 
> > On Fri, May 27 2016, Eli Zaretskii wrote:
> >
> >> Strange.  Do you have some clipboard-related agent active that tries
> >> to do something with stuff pasted from the clipboard?
> >
> > xcb is running. (no problem since 1995...)
> 
> I've found another one: vncviewer
> 
> The copy-paste-problem happens only, when at least one vncviewer is
> running.
> 
> After further investigation, copy-paste in xterm has the same problem,
> that means, that this is not (or not only) an emacs-bug.
> 
> I'll report it to the vncviewer list.
> 
> Sorry about the needless bug-report.

OK, thanks.  Closing the bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 24 Jun 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 357 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.