[fpc-devel] cpstrrtl/unicode branch merged to trunk

Sven Barth pascaldragon at googlemail.com
Sat Sep 7 18:15:24 CEST 2013


Am 07.09.2013 17:23 schrieb "Hans-Peter Diettrich" <DrDiettrich1 at aol.com>:
>>>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130907/4f38edd1/attachment.html>


More information about the fpc-devel mailing list