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

"©" character in .cpp files fails build under Windows with codepage 950 #10

Open
mikekaganski opened this issue Feb 11, 2018 · 0 comments

Comments

@mikekaganski
Copy link

The .cpp files include out-of-US-ASCII (>127) character "©", which causes this warning (and error when -werror is used globally):

..\src\log.cpp : error C2220: warning treated as error - no 'object' file generated [C:\src\lo\workdir\UnpackedTarball\twain_dsm\visual_studio\TWAIN_DSM_VS2015.vcxproj]
..\src\log.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss [C:\src\lo\workdir\UnpackedTarball\twain_dsm\visual_studio\TWAIN_DSM_VS2015.vcxproj]

Either utf-8 with BOM encoding could be used in that case for source files, or some way of explicit marking of proper encoding of the files in vcproject files, or maybe simple replacement of "©" with "(C)".

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

No branches or pull requests

1 participant