Win: Use wchar_t for copyright string in RC files
llvm-rc doesn't like the copyright symbol in the LegalCopyright string. Possible solutions: 1. Replace the copyright symbol with "(C)". 2. Prefix the string literal with L, thus making it a wide character string. 3. Pass -c65001 to the resource compiler to enable the UTF-8 code page. Option 2 is the least disruptive, since it doesn't change the behavior of the official builds or require any build system modifications. Closes #627
This commit is contained in:
@@ -24,7 +24,7 @@ BEGIN
|
||||
VALUE "ProductVersion", "@VERSION@"
|
||||
VALUE "ProductName", "@CMAKE_PROJECT_NAME@"
|
||||
VALUE "InternalName", "jpeg@SO_MAJOR_VERSION@"
|
||||
VALUE "LegalCopyright", "Copyright \xA9 @COPYRIGHT_YEAR@ The libjpeg-turbo Project and many others"
|
||||
VALUE "LegalCopyright", L"Copyright \xA9 @COPYRIGHT_YEAR@ The libjpeg-turbo Project and many others"
|
||||
VALUE "OriginalFilename", "jpeg@SO_MAJOR_VERSION@.dll"
|
||||
END
|
||||
END
|
||||
|
||||
@@ -24,7 +24,7 @@ BEGIN
|
||||
VALUE "ProductVersion", "@VERSION@"
|
||||
VALUE "ProductName", "@CMAKE_PROJECT_NAME@"
|
||||
VALUE "InternalName", "turbojpeg"
|
||||
VALUE "LegalCopyright", "Copyright \xA9 @COPYRIGHT_YEAR@ The libjpeg-turbo Project and many others"
|
||||
VALUE "LegalCopyright", L"Copyright \xA9 @COPYRIGHT_YEAR@ The libjpeg-turbo Project and many others"
|
||||
VALUE "OriginalFilename", "turbojpeg.dll"
|
||||
END
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user