[kde] [Bug 465641] New: Wrong text encoding for file names in X11
Toby
bugzilla_noreply at kde.org
Sun Feb 12 21:14:39 GMT 2023
https://bugs.kde.org/show_bug.cgi?id=465641
Bug ID: 465641
Summary: Wrong text encoding for file names in X11
Classification: I don't know
Product: kde
Version: unspecified
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: tianer2820 at outlook.com
Target Milestone: ---
SUMMARY
Chinese file names become random strings when using the "ls" command and in
many other applications.
Looks like the encoding is wrong.
This only happens in X11, in Wayland, everything worked fine.
Many other applications are affected, such as LibreOffice and Python3.
LibreOffice displays the file name on its title bar and it becomes a random
string. The os.listdir() in Python3 also produce random strings.
I guess the system is making wrong assumptions about what encoding those
applications use.
STEPS TO REPRODUCE
1. create a new folder, cd into it, create a new file named "测试.txt"
2. run ls ./
OBSERVED RESULT
the file name becomes "'��'$'\213''��'$'\225''.txt'"
EXPECTED RESULT
It should not become a random string
SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.10-200.fc37.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-9300HF CPU @ 2.40GHz
Memory: 7.7 GiB of RAM
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list