[fpc-devel] SetString difference between Ansistring and UnicodeString

Vincent Snijders vsnijders at vodafonevast.nl
Wed Oct 7 12:26:28 CEST 2009


Sergei Gorelkin schreef:
> Vincent Snijders wrote:
>> Vincent Snijders schreef:
>>> While running valgrind on fpcdoc, I got a warning in
>>
>> Maybe you are interested in the valgind output. See attachment.
>>
> That check should be removed altogether, in both WideString and 
> UnicodeString routines.
> I just checked with Delphi, it allows setstring(widestring) with data 
> containing #0 in the middle. So having a check is Delphi-uncompatible, 
> and also causes a performance penalty.
> 

Shall I create a bug report?

Vincent



More information about the fpc-devel mailing list