Skip to content

non-ascii characters are pasted incorrectly #23

@bendi-github

Description

@bendi-github

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions