Project

General

Profile

Actions

Emulator Issues #12502

open

[Windows 10] Invalid character when displaying image file size

Added by karolst almost 3 years ago. Updated 10 days ago.

Status:
Accepted
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Windows
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

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

2021-05-07 12_29_36-Window.png (4.55 KB) 2021-05-07 12_29_36-Window.png screeshot karolst, 05/07/2021 10:29 AM
Actions #1

Updated by JosJuice almost 3 years ago

  • Status changed from New to Accepted
  • Operating system Windows added
  • Operating system deleted (N/A)
Actions #2

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? 🙁

Actions

Also available in: Atom PDF