You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add multibyte path and filename support for resource handling in OCRAN
This commit introduces comprehensive support for multibyte (UTF-8) characters
in file and directory names during resource extraction and script execution.
Key improvements:
- Added UTF-8 manifest to stub.exe to ensure correct handling of UTF-8 paths
using ANSI (A) APIs on modern Windows environments.
- Added test cases covering:
- Executables run from multibyte directories
- Scripts with multibyte filenames
- Resource files with multibyte names
- Resource directories with multibyte names
- Adjusted test scripts to perform byte-wise filename matching to bypass
Windows/Ruby encoding mismatches.
- Tests now conditionally skip if console code page is not UTF-8 (65001),
preventing false negatives on non-UTF-8 environments (e.g., CP932).
These changes ensure that OCRAN reliably handles multibyte resources
in real-world Japanese or emoji-rich file systems.
0 commit comments