Am 07.09.2013 17:23 schrieb "Hans-Peter Diettrich" <[email protected]>: >>>> Anyway, the resulting code page of a concatenation is normally >>>> the code page of whatever you assign the string to (so if you >>>> assign to an utf8string, the resulting code page will be >>>> CP_UTF8). >>> >>> Maybe. I don't know how a concrete compiler handles string >>> concatenations. >> >> >> Now you do. It's like that both in FPC and in Delphi. > > > Sorry, I didn't look at or step through the generated code. I still > doubt that a concatenation function gets an TargetEncoding argument.
The target string is passed as var-parameter and thus the codepage can be queried using StringCodePage. See fpc_ansistr_concat in rtl/inc/astrings.inc. Regards, Sven
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
