On Fri, 21 Jul 2006 11:47:07 -0400
"Alexandre Leclerc" <[EMAIL PROTECTED]> wrote:

> 2006/7/21, Mattias Gaertner <[EMAIL PROTECTED]>:
> > Does length(ws) return the right value? That means the number of
characters
> > (bytes div 2)?
> 
> Mattias,
> 
> I found that all the saving bugs are again related to object that have
> widestring properties (like DefaultText)... many of them. And this was
> also causing data coruption (which I understand now).
> 
> Is there anything / patch related to widestring text for object
properties?

See the comment in virtualtreeview:

procedure TCustomVirtualStringTree.DefineProperties(Filer: TFiler);
  // Delphi still cannot handle wide strings properly while streaming
  Filer.DefineProperty('WideDefaultText', @ReadText, @WriteText,
FDefaultText <> 'Node');
 
The FCL TWriter has a problem too: It refuses to write empty widestrings.
AFAIK only virtualtreeview uses this to write widestrings, so maybe it has a
unique bug. Therefore I added examples/widestringstreaming/.
Please test.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to