XorTroll / Goldleaf

🍂 Multipurpose homebrew tool for Nintendo Switch
GNU General Public License v3.0
2.64k stars 351 forks source link

Doesn't show Files in SD Card with é and ' #299

Closed rlaphoenix closed 5 years ago

rlaphoenix commented 5 years ago

Doesn't show Files in SD Card with é and ' For example, if it has: é AND ' in the filenames title, it wont show in Goldleaf

[ Please describe your bug as detailed as possible here. ]

Your setup

Bug reproduction

If we change the é to e and remove the ', it will then show. Example: Pokémon Let’s Go, Eevee! (Wont work) Pokemon Lets Go, Eevee! (Will work)

XorTroll commented 5 years ago

Probably UI libraries' issue. Will look into it later.

ThatNerdyPikachu commented 5 years ago

@XorTroll It's FS -- this even happened with Adubbz's Tinfoil.

roothorick commented 5 years ago

To clarify: This is a bug in Horizon itself.

VFAT (the FAT12/16/32 extension that enables non-8.3 filenames) and exFAT encode file names in UTF-16, but Horizon encodes filenames as a kind of broken noncompliant Shift-JIS, in that what in SJIS is supposed to be a one-byte character is instead padded to two bytes. This makes it align with UTF-16 such that the base ASCII codepage lines up, but nothing else does. So anything non-ASCII will cause all kinds of breakage in pretty much every homebrew, and even two ASCII characters (\ and `) will show up wrong (¥ and ‾ respectively).

XorTroll commented 5 years ago

^ Nothing we can do, however via remote PC this is handled fine in 0.7.