spell the copyright sign in the version resource as an escape

The one byte in ja2.rc above ASCII is the 0xA9 in "Copyright (c) 1998",
written raw. What it means depends on the codepage the resource compiler
happens to run under, and llvm-rc will not guess: "Non-ASCII 8-bit codepoint
can't be interpreted in the current codepage".

An escape in a wide string says it outright. The escape alone is not enough
-- a byte above 127 cannot appear in a narrow resource string either -- but
the value block is stored as wide characters regardless, so the L costs
nothing.

rc.exe produces a byte-identical ja2.rc.res before and after.
This commit is contained in:
Marco Antonio J. Costa
2026-07-23 19:29:55 -03:00
committed by majcosta
parent 2c6202334e
commit 0fd48acf5d
+1 -1
View File
@@ -73,7 +73,7 @@ BEGIN
VALUE "FileDescription", "Jagged Alliance 2 Gold"
VALUE "FileVersion", "1, 0, 0, 6"
VALUE "InternalName", "Jagged Alliance 2"
VALUE "LegalCopyright", "Copyright © 1998"
VALUE "LegalCopyright", L"Copyright \251 1998"
VALUE "OriginalFilename", "Ja2.exe"
VALUE "ProductName", "Jagged Alliance 2 Gold"
VALUE "ProductVersion", "1, 0, 0, 6"