Rosalie241 / RMG

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

Exception while saving cache if filename contains special characters #208

Open ctrlbru opened 5 months ago

ctrlbru commented 5 months ago

Environment: Linux Mint on x86_64 using AppImage.

When closing the app I get the error below if a rom exists with special chars in the filename (e.g. ǎìōīē). The cache file gets truncated prematurely. Anyway, the gui can show the filename correctly.

terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error' what(): filesystem error: Cannot convert character sequence: Invalid or incomplete multibyte or wide character

How to reproduce: rename a rom file to include letter ǎ (U+01CE), scan the roms folder, close the app.

I believe it could be related to this recently fixed bug in gcc which seems to affect gcc 9.2 used for the build, if I'm not mistaken.

Rosalie241 commented 5 months ago

Try using the flatpak

ctrlbru commented 5 months ago

I confirm flatpak works.