Emulator Issues #12502
open[Windows 10] Invalid character when displaying image file size
0%
Description
Operating system: Windows 10 x64
System locale: Polish (although it should be replicable in some other locales too)
Dolphin version: 5.0-14097
Revision: 19580c38410f0c83c94e000dba0164bf54f088ef
The issue manifests itself on the main screen of the GUI, in the disk image list, in the size column.
When the size of the disk image is between 1000 MiB and 1 GiB, the thousands separator is rendered incorrectly as a diamond with a question mark.
The thousands separator is U+00A0 NO-BREAK SPACE in my locale.
See the attached screenshot.
Files
Updated by JosJuice almost 3 years ago
- Status changed from New to Accepted
- Operating system Windows added
- Operating system deleted (
N/A)
Updated by Billiard26 10 days ago
The locale defines the thousands separator as the single character \xA0
(NO-BREAK SPACE
).
We assume the fmt::format
result can be interpreted as a utf-8 sequence but unfortunately NO-BREAK SPACE
is represented as \xC2\xA0
in utf-8.
\xA0
is just invalid in utf-8.
There is probably more code that assumes fmt::format
produces valid utf-8 sequences. Numbers and strings will have to be handled separately? 🙁