Skip to content
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

change .gitattributes encoding UTF-16 to UTF-8 and set it for lang files #447

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

lifenjoiner
Copy link
Collaborator

For UTF-16, git converts back to UTF-16BE BOM, but MSVC silently takes it without error.
MSVC compiler recognizes UTF-8 BOM.
VS2022 stores UTF-8 rc file with #pragma code_page(65001) instead of BOM.

My bad. I recalled the binaries was good, during several times hard reset.
Now, it has been tested by Build Tools with cl v19.33.31630 and VS2022 v17.8.6 with cl v19.38.33135.

For UTF-16, git converts back to UTF-16BE BOM, but MSVC silently takes it.
MSVC compiler recognizes UTF-8 BOM.
VS2022 stores UTF-8 rc file with `#pragma` instead of BOM.
@stefankueng stefankueng merged commit a0b8ab7 into stefankueng:main Feb 2, 2024
1 check passed
@lifenjoiner lifenjoiner deleted the utf8 branch February 3, 2024 00:09
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