[fpc-devel] SetString difference between Ansistring and UnicodeString

Sergei Gorelkin sergei_gorelkin at mail.ru
Tue Oct 6 14:01:36 CEST 2009


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.

Regards,
Sergei



More information about the fpc-devel mailing list