Description
I did this
Compiling on Windows 10 with Clang 12.0.1. Ninja build files generated by CMake.
Getting error at curl/lib/libcurl.rc
.
llvm-rc: error in versioninfo statement (id 1): [build] non-ascii 8-bit codepoint (169) can't occur in a non-unicode string
Removing everything coming after #define RC_VERSION
results in successful compilation.
I expected the following
Successful compilation
curl/libcurl version
7.79.1-DEV
operating system
Windows 10.
UPD:
The issue is here VALUE "LegalCopyright", "\xa9 " LIBCURL_COPYRIGHT "\0" /* a9: Copyright symbol */
. Removing this results in successful compilation.
To be exact it doesn't like "\xa9 "
part.
UPD:
Adding L before the string fixes the issue.
VALUE "LegalCopyright", "\xa9 " LIBCURL_COPYRIGHT "\0" /* a9: Copyright symbol */
Becomes
VALUE "LegalCopyright", L"\xa9 " LIBCURL_COPYRIGHT "\0" /* a9: Copyright symbol */
Copyright symbol is properly displayed in .dll info
Tested under Clang 12.0.1 and MSVC 16.9