Public bug reported:

I'm running Ubuntu 25.04 guest (the machine I'm reporting this ticket
from) on an Ubuntu 25.10 host, via virt-manager/QEMU/KVM. Copy-paste
from guest to host and back works well for ASCII characters, but the
most curious thing happens when I try to copy a non-ASCII text from
guest to host. As an example, I'll copy the "ようこそ" text from
https://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8
.

1. Copy ようこそ on guest, pasting on guest: works as expected, pastes ようこそ
2. Copy ようこそ on guest, pasting on host: pastes as "\u3088\u3046\u3053\u305d" - 
this is the problem.
3. Copy ようこそ on host, pasting on guest: works as expected, pastes ようこそ

Googling/AI search for this particular problem yielded nothing
interesting, except from the information that spice-vdagent may exhibit
these kinds of issues when running under Wayland.

spice-vdagent logs show no errors:

```
systemctl status spice-vdagent
● spice-vdagentd.service - Agent daemon for Spice guests
     Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; indirect; 
preset: enabled)
     Active: active (running) since Mon 2025-10-06 09:39:37 EEST; 7min ago
 Invocation: 2418b05b8b664561879fec0eb328aed7
TriggeredBy: ● spice-vdagentd.socket
    Process: 2274 ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS 
(code=exited, status=0/SUCCESS)
   Main PID: 2283 (spice-vdagentd)
      Tasks: 3 (limit: 18404)
     Memory: 828K (peak: 1.7M)
        CPU: 508ms
     CGroup: /system.slice/spice-vdagentd.service
             └─2283 /usr/sbin/spice-vdagentd

Oct 06 09:39:37 mavi-bee-vm-base systemd[1]: Starting spice-vdagentd.service - 
Agent daemon for Spice guests...
Oct 06 09:39:37 mavi-bee-vm-base (vdagentd)[2274]: spice-vdagentd.service: 
Referenced but unset environment variable evaluates to an empty string: 
SPICE_VDAGENTD_EXTRA_ARGS
Oct 06 09:39:37 mavi-bee-vm-base spice-vdagentd[2283]: opening vdagent virtio 
channel
Oct 06 09:39:37 mavi-bee-vm-base systemd[1]: Started spice-vdagentd.service - 
Agent daemon for Spice guests.
Oct 06 09:39:37 mavi-bee-vm-base spice-vdagentd[2283]: Set max clipboard: 
104857600
Oct 06 09:39:56 mavi-bee-vm-base spice-vdagentd[2283]: closed vdagent virtio 
channel
Oct 06 09:39:57 mavi-bee-vm-base spice-vdagentd[2283]: opening vdagent virtio 
channel
Oct 06 09:39:57 mavi-bee-vm-base spice-vdagentd[2283]: Set max clipboard: 
104857600
Oct 06 09:39:57 mavi-bee-vm-base spice-vdagentd[2283]: Set max clipboard: 
104857600
```

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: spice-vdagent 0.22.1-4.1
ProcVersionSignature: Ubuntu 6.14.0-33.33-generic 6.14.11
Uname: Linux 6.14.0-33-generic x86_64
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct  6 09:40:25 2025
InstallationDate: Installed on 2025-10-02 (3 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/usr/bin/fish
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: spice-vdagent
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: spice-vdagent (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug plucky wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2126904

Title:
  copying non-ASCII characters on guest Ubuntu pastes question marks or
  unicode escapes on host Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/spice-vdagent/+bug/2126904/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to