simpleclip icon indicating copy to clipboard operation
simpleclip copied to clipboard

non-ascii characters are pasted incorrectly

Open bendi-github opened this issue 6 months ago • 0 comments

When trying to paste non-ascii characters, via simpleclip-paste, unexpected text is inserted instead.

Steps to reproduce

  1. emacs -Q

(require 'package)

(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)

(package-initialize)

(use-package simpleclip
  :ensure t
  )

(simpleclip-mode)

M-x eval-buffer

  1. Copy 😀 to clipboard
  2. M-x simpleclip-paste
  3. \U0001f60 is inserted instead of the emoji
  4. Copy äé to clipboard
  5. M-x simpleclip-paste
  6. \344\351 is inserted

System specs

M-x emacs-version GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.2) Emacs is installed via the nix package manager on NixOS as emacs-pgtk

I have wl-clipboard installed

I have confirmed this issue occurs with the Hyprland Wayland compositor as well as the COSMIC desktop environment.

bendi-github avatar Jul 04 '25 13:07 bendi-github