bug#81417: 30.2; pgtk: textual selection targets are served as Latin-1 on Wayland, causing mojibake when pasting into Cromium

Björn A. Lindqvist <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <CALG+76cqDqSCYie01pKNj1KFN7LzThCVgkcaYMwxri9FcGLr8A@mail.gmail.com>
Den ons 15 juli 2026 kl 16:27 skrev Victor Vollbrecht
<[email protected]>:
> On the pgtk build running natively on Wayland, copying text containing
> non-ASCII characters from Emacs and pasting it into a Chromium-based
> browser (tested with Vivaldi 8.1 running with --ozone-platform=wayland)
> corrupts the non-ASCII characters. For example, copying

The same issue has been reported for the Brave browser:

https://community.brave.app/t/clipboard-corrupts-accented-utf-8-characters-from-emacs-into-brave-under-native-wayland/655984

To the best of my knowledge, Chromium/Brave is at fault and not
Emacs. Indeed, Emacs uses a very long list of formats, with
latin-1-encoded formats occurring before utf-8-encoded ones. However,
removing older latin1-formats probably breaks copy-paste for legacy
x11 programs. And programs other than Chromium/Brave do not
misinterpret pastes from Emacs.


-- 
mvh/best regards Björn Lindqvist
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.