[frameworks-solid] [Bug 505913] New: Non-ASCII device names are garbled in solid-hardware5 output

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sat Jun 21 13:32:41 BST 2025


https://bugs.kde.org/show_bug.cgi?id=505913

            Bug ID: 505913
           Summary: Non-ASCII device names are garbled in solid-hardware5
                    output
    Classification: Frameworks and Libraries
           Product: frameworks-solid
      Version First 5.103.0
       Reported In:
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: gwdx at mail.ustc.edu.cn
                CC: kdelibs-bugs at kde.org, lukas at kde.org
  Target Milestone: ---

STEPS TO REPRODUCE
1. Connect a device with a non-ASCII product name (e.g. `一加 Ace 5`) over USB
using the MTP protocol.
2. Run: `solid-hardware5 details <device-udi>`

OBSERVED RESULT

Product and description are garbled text.

```
gwd at pc ~ solid-hardware5 details
'/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2'
  parent = '/org/kde/solid/udev' (string)
  vendor = 'OnePlus' (string)
  product = 'ä¸å  Ace 5' (string)
  description = 'ä¸å  Ace 5' (string)
  icon = 'multimedia-player' (string)
  Block.major = 189  (0xbd)  (int)
  Block.minor = 15  (0xf)  (int)
  Block.device = '/dev/bus/usb/001/016' (string)
  Camera.supportedProtocols = {'ptp'} (string list)
  Camera.supportedDrivers = {'gphoto'} (string list)
  PortableMediaPlayer.supportedProtocols = {'mtp'} (string list)
  PortableMediaPlayer.supportedDrivers = {'usb'} (string list)
```

EXPECTED RESULT

Product and description show the correct device name (`一加 Ace 5`).


SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-37-amd64 (64-bit)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list