libretro / beetle-psx-libretro

Standalone port/fork of Mednafen PSX to the Libretro API.
GNU General Public License v2.0
311 stars 131 forks source link

.m3u files cannot load from a path that included 2-byte characters #654

Open sdhizumi opened 4 years ago

sdhizumi commented 4 years ago

Description

m3u files cannot load that has a path included 2-byte characters.

Expected behavior

Mednafen(upstream) can load .m3u file as a multiple-disc game that has a path included 2-byte characters. Probably beetle-psx-libretro can load too.

Actual behavior

beetle-psx-libretro cannot load .m3u file that has a path included 2-byte characters. (ex. Japanese characters) .cue file can load from same path by RetroArch.

Steps to reproduce the bug

  1. Make a directory containing Japanese characters. ex. C:\PSX_ROM\メタルギア ソリッド (Japan)

  2. Place ROM and .m3u in that directory. ex. C:\PSX_ROM\メタルギア ソリッド (Japan)\Metal Gear Solid (Japan).m3u

    Metal Gear Solid (Japan) (Disc 1).cue
    Metal Gear Solid (Japan) (Disc 2).cue
  3. Load that .m3u file to Beetle PSX core from RetroArch.

  4. RetroArch will crash.

Bisect results

Maybe this problem from first version but I don't tested older versions.

Version/Commit

Core options

All options are default.

Environment information

i30817 commented 4 years ago

Not being loaded as utf-8.