Skip to content

Add UTF-8 path support #1307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2023
Merged

Add UTF-8 path support #1307

merged 1 commit into from
May 17, 2023

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented May 17, 2023

This takes advantage of a Windows 10 manifest property to set the process code page to UTF-8.

Prior to this update:

cppwinrt.exe -in d:\Test❤️\Windows.winmd -out d:\Test❤️
cppwinrt : error Path 'd:\Test??\Windows.winmd' is not a file or directory

With this update:

D:\git\cppwinrt\_build\x86\Release\cppwinrt.exe -in d:\Test❤️\Windows.winmd -out d:\Test❤️

Input is parsed correctly and output is generated correctly.

I'm reluctant to add a test for this scenario to avoid complicating the build.

Fixes: #1306

@kennykerr kennykerr requested a review from oldnewthing May 17, 2023 13:49
@kennykerr
Copy link
Collaborator Author

@alvinhochun any suggestions for the Linux build failure?

@alvinhochun
Copy link
Contributor

@alvinhochun any suggestions for the Linux build failure?

Looks like a random unrelated failure in that one test. I suspect a thread left over from another test just happened to interfere with it, perhaps?

@kennykerr
Copy link
Collaborator Author

Reran and it cleared - thanks for checking.

@kennykerr kennykerr merged commit 780e095 into master May 17, 2023
@kennykerr kennykerr deleted the utf8 branch May 17, 2023 17:26
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.

Bug: cppwinrt does not support chinese path
3 participants