[fpc-devel] Explanation about code page-aware AnsiStrings

Sven Barth pascaldragon at googlemail.com
Thu Jan 9 07:45:44 CET 2014


On 08.01.2014 23:54, Hans-Peter Diettrich wrote:
> Sven Barth schrieb:
>> On 08.01.2014 19:57, Hans-Peter Diettrich wrote:
>
>>> It looks to me, however, that no conversion occurs at all!
>>> The strings are only concatenated as they are.
>>> Same for a concatenation of (global) RawByteString variables.
>>>
>>> This of course were not a desireable implementation :-(
>>
>> I'm inclined to say "of course", because in your "test" function you
>> are concatenating two RawByteStrings which - by definition - don't do
>> any conversion.
>
> I cited what I've been told in the EMBT groups - that a conversion is
> made when required. Everything else doesn't make sense.

And your example proves otherwise...

Regards,
Sven




More information about the fpc-devel mailing list