Skip to content

fix(ui): localize file dialog folders and handle UTF-8 selections - #6

Merged
hzqst merged 1 commit into
mainfrom
fix/file-dialog-utf8
Oct 17, 2026
Merged

hzqst merged 1 commit into
mainfrom
fix/file-dialog-utf8

Conversation

@hzqst

@hzqst hzqst commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

File-dialog folder rows display the untranslated #FileOpenDialog_FileType_Folder token. Add English and Simplified Chinese translations, register the file-selection receiver, and pass the Unicode destination buffer size in bytes when loading the selected image.

Add filesystem regression tests under real process ACP 936 and 65001. Test-only manifests select the code page without changing system settings; unsupported OS/code-page combinations are reported as skipped. The cases cover Chinese and supplementary Unicode filenames, filenames exceeding 260 UTF-8 bytes, enumeration, recursive directory creation, attributes, working-directory conversion and error paths.

Depends on MetaHookSv/MetaHook#15 for the shared UTF-8/W API filesystem helper and file-dialog encoding/column-width fixes. Merge the SDK PR first, then refresh the SDK checkout used by standalone builds.

Validation:

  • MSVC Win32 Release build passed using the companion SDK checkout through METAHOOK_SOURCE_PATH.
  • All 13 CTest cases passed, including ACP 936 and 65001; neither code-page case was skipped.
  • Shared formatting checks and git diff --check passed.
  • In-game visual verification has not been performed.

Related to MetaHookSv/MetaHookSv#925 (BetterSpray file-dialog issues only).

Register file selection messages, correct the Unicode buffer size, and add filesystem regressions under ACP 936 and 65001.

Co-Authored-By: Codex <codex@openai.com>
@hzqst
hzqst marked this pull request as ready for review October 17, 2026 08:41
@hzqst
hzqst merged commit 8756968 into main Oct 17, 2026
3 of 4 checks passed
@hzqst
hzqst deleted the fix/file-dialog-utf8 branch October 22, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant