Rosalie241 / RMG

Rosalie's Mupen GUI
GNU General Public License v3.0
572 stars 50 forks source link

[ISSUE] RMG can't load zipped files that contains a rom with non-english characters in its file name #205

Open ElektroStudios opened 6 months ago

ElektroStudios commented 6 months ago

Steps to reproduce the bug

  1. Pick any rom file and rename it adding a character from Windows-1252 (latin) character set, for example: Pokemon Snap.n64 -> Pokémon Snap.n64. (the e character was renamed to é)

  2. Compress the rom file to generate a zip file, and try to load the zip file in RMG by dragging the file or by using the menu to load it.

  3. At this point RMG will stop responding, it will hang and it will kill itself after some seconds.

Observations

Environment

Rosalie241 commented 6 months ago

Currently, that's a limitation of the zip library I'm using and windows itself, so unless I switch to a different library to extract zip archives which supports wchar_t* for filenames in zip files on windows, this cannot be solved, this should work fine already on linux though.

ElektroStudios commented 6 months ago

It is not a problem of urgent necessity, but it is a kinda compatibility issue that is currently present, it can affect various zipped roms whose official titles / file names in Spanish are written with accented vowels, and I wanted to expose the problem in case of that you were not aware of it.

By the way, I discovered RMG today and it is beautiful, I prefer it than the other ones, great job!.