From 0fd48acf5d5e689d595f2762c109a123277cb006 Mon Sep 17 00:00:00 2001 From: "Marco Antonio J. Costa" Date: Wed, 22 Jul 2026 14:37:50 -0300 Subject: [PATCH] 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. --- Ja2/Res/ja2.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ja2/Res/ja2.rc b/Ja2/Res/ja2.rc index 6265645cc..f6066b6f2 100644 --- a/Ja2/Res/ja2.rc +++ b/Ja2/Res/ja2.rc @@ -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"