Skip to content

vk_compute_test: preserve Unicode shader paths on Windows - #8167

Open
NemesisDawn wants to merge 1 commit into
ItsNotRexed:mainfrom
NemesisDawn:fix/vk-compute-unicode-path
Open

NemesisDawn wants to merge 1 commit into
ItsNotRexed:mainfrom
NemesisDawn:fix/vk-compute-unicode-path

Conversation

@NemesisDawn

Copy link
Copy Markdown

Use the wide Windows command line to open shader files with Unicode paths.

Tested on Windows build 26200 with MSVC 19.44, Vulkan SDK 1.4.363.1, and an RTX 5080 on driver 621.24. Four Unicode path cases failed before and passed after. The ASCII path control and three argument validation checks also passed.

No game data was used. AI-assisted (Codex).

@devnull34 devnull34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified via Tier 2 Free Cloud (GitHub Models gpt-4.1): Retrieving wide arguments via CommandLineToArgvW(GetCommandLineW(), ...) and converting to std::filesystem::path avoids CRT narrow argv ANSI/OEM code-page character substitution on Windows, allowing non-ASCII/Unicode shader filenames to open reliably.

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.

2 participants