Mattias Gaertner schrieb:
And probably Mattias is wrong if he thinks "String" in FPC trunk does not
enforce encoding if I understood correctly.
"string" enforces an 8-bit type.
You obviously talk about AnsiString, not the new String=UnicodeString.
It does not enforce a specific codepage like utf8string. At least under
Linux.
Assign a CP_UTF8 and the string becomes CP_UTF8, assign a CP_ACP and it
becomes CP_ACP, assign a CP_UTF16 and it becomes DefaultSystemCodePage.
Do you see a difference between CP_ACP and DefaultSystemCodePage? In
Delphi it's the same (by default), and AnsiString(0) is equivalent to
AnsiString(CP_ACP).
DoDi
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus