Bug 152667 - Wrong text encoding for file names and clip board under KDE x11
Summary: Wrong text encoding for file names and clip board under KDE x11
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-24 20:02 UTC by Toby
Modified: 2023-02-13 01:05 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toby 2022-12-24 20:02:56 UTC
Description:
When opening a file with Chinese characters in its name, the file name displayed on the title bar becomes some random codes.

When pasting Chinese characters from the clipboard, it becomes random codes.


Steps to Reproduce:
1. Open LibreOffice Write, save the file as "test 测试 123.odt"
2. The title bar displays "test æµè¯ 123.odt"


3. Now, copy the string "test 测试 123" to KWrite first so it becomes pure text without any html formatting
4. Copy the string again from KWrite to LibreOffice Write, it becomes some random codes.

Actual Results:
Strings with Chinese characters become random codes.

Expected Results:
The pasted string should be the same.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
- This only happens under KDE X11. KDE Wayland works as expected.
- Copy & paste from browsers or from LibreOffice itself works as expected, but any pure strings from text editor or file browser goes wrong.
- Looks like LibreOffice is not using the correct encoding for pasting those strings.


System Info:

Operating System: Fedora Linux 37
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.14-300.fc37.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-9300HF CPU @ 2.40GHz
Memory: 7.7 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1650/PCIe/SSE2
Manufacturer: LENOVO
Product Name: 81T0
System Version: Legion Y7000 2019 PG0
Comment 1 Toby 2023-02-13 01:05:02 UTC
Turned out to be related to system charmap settings. Solved after setting the charmap to utf8.