#14 virtualtreeview-new: tree saved in delphi does not open

closed-wont-fix
Luiz Camara
None
5
2011-02-04
2010-02-18
unitay
No

virtualtreeview-new: tree saved in delphi does not open in lazarus

To fix this in VirtualTrees.pas replace
3933: TMagicID = array[0..5] of Char;
on
3933: TMagicID = array[0..5] of WideChar;

and

3990: MagicID: TMagicID = (#$45, 'V', 'T', Char(VTTreeStreamVersion), ' ', #$46);
on
3990: MagicID: TMagicID = (#$2045, 'V', 'T', Char(VTTreeStreamVersion), ' ', #$2046);

Discussion

    • assigned_to: nobody --> blikblum
     
  • Luiz Camara
    Luiz Camara
    2011-02-04

    Delphi version of VTV uses WideString/UTF16 encoding while Lazarus uses UTF-8. So the saved streams are not compatible.

     
  • Luiz Camara
    Luiz Camara
    2011-02-04

    • status: open --> closed-wont-fix