insani-org / onscripter-insani

A branch of ONScripter by Ogapee. Focuses on portability and builds for modern Windows and macOS. Also see ONScripter-EN (https://github.com/Galladite27/ONScripter-en), which is our sister project.
http://nscripter.insani.org
GNU General Public License v2.0
36 stars 2 forks source link

SHIFT_JIS filenames cannot be read in UTF8 Mode #13

Open lightbinder opened 1 year ago

lightbinder commented 1 year ago

The root cause of this bug is simple -- in our new UTF8 Mode, a UTF8 aware filesystem and UTF8 encoded filenames are assumed. However, compressed archives (like arc.nsa) that were originally compressed in a SHIFT_JIS file system will continue to have SHIFT_JIS filenames. The solution is to make sure that a conversion to SHIFT_JIS is tried if the UTF8 equivalent is not found.