GNU bug report logs -
#51685
29.0.50; Yanking from clipboard broken (Win10)
Previous Next
Reported by: Arash Esbati <arash <at> gnu.org>
Date: Mon, 8 Nov 2021 10:59:01 UTC
Severity: normal
Found in version 29.0.50
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 08 Nov 2021 12:27:43 +0100
> Cc: 51685 <at> debbugs.gnu.org
>
> >> 1) Start Emacs with emacs -Q (from a MinGW64 shell)
> >> 2) Open Windows Editor
> >> 3) Enter control <at> debbugs.gnu.org in Editor
> >> 4) Mark and Copy in Editor
> >> 5) Yank in scratch with C-y
> >
> > Does reverting 5e66c75e0 fix the issue?
>
> I've reverted it now and will have to reexamine the problem before
> attempting a new fix.
Whatever you do, don't decode the selection text on MS-Windows. It is
already decoded (see w32-get-clipboard-data), and
selection-coding-system is UTF-16 on MS-Windows, so decoding a decoded
string by that will not do anything useful ;-)
The existing code carefully side-steps the decoding by looking at the
foreign-selection property on the string, which the Windows code
doesn't set. But your changes removed that test, and thus caused the
clipboard text to be decoded on Windows.
This bug report was last modified 3 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.