WinCE projects fail to compile
Original Reporter info from Mantis: Stephano
-
Reporter name:
Original Reporter info from Mantis: Stephano
- Reporter name:
Description:
The forcing of UTF8 RTL by default (can be disabled through the conditional directive DisableUTF8RTL) makes compilation of WinCE projects fail.
The compilation errors are mainly in winlazutf8.inc:
line 195: GetMem(argv,SizeOf(Pointer)*length(ArgsW));
line 199: argv[i]:=PChar(ArgsUTF8[i]);
line 523: argv:=OldArgV;
Error: Can't take the address of constant expressions / argv is a function and can't be assigned to
line 354: if (GetLocaleInfoA(aLocaleID, aLCType, Buf, sizeof(buf)) > 0)
Error: Identifier not found "GetLocaleInfoA"
line 497: GetFormatSettingsUTF8(GetThreadLocale,FormatSettings);
Error: Identifier not found "GetThreadLocale"
There are 2 workarounds:
1- For each and every project: Project options / Additions and Overrides / Use System Encoding
2- Apply the attached patch. If then one wants to test the UTF8 RTL, do the same as in (1) above and change -dDisableUTF8RTL to -dWinCEEnableUTF8RTL