On 07.09.2013 23:00, Hans-Peter Diettrich wrote:
Sven Barth schrieb:

 > 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.

Does this work also for empty string variables?

StringCodePage returns the default code page (variable DefaultSystemCodePage) for empty strings (which are Nil).

Regards,
Sven

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to