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

Fix compiler error with msvc on non-unicode system #85

Merged
merged 1 commit into from
May 27, 2023

Conversation

xyz1001
Copy link

@xyz1001 xyz1001 commented May 19, 2023

On non-unicode system, msvc treat utf-8 file without bom as ANSI encode, which cause compiler warning C481.
/utf-8 force msvc compiler treat file as utf-8 encode.

relative issue: getsentry/sentry-native#443

@supervacuus
Copy link
Collaborator

Thanks @xyz1001. I am not a huge fan of setting the flags globally (vs. per target), but I think it is a sensible approach in this case.

@supervacuus supervacuus merged commit 514169d into getsentry:getsentry May 27, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants