Changeset 170 for trunk/Packages/VCard


Ignore:
Timestamp:
Jul 2, 2023, 11:07:39 PM (18 months ago)
Author:
chronos
Message:
  • Fixed: Show only supported import formats.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/VCard/VCard.pas

    r168 r170  
    698698  Lines := TStringList.Create;
    699699  Lines.LoadFromFile(FileName);
    700   {$IF FPC_FULLVERSION>=30200}
    701   if (Length(Lines.Text) > 0) and (Pos(VCardBegin, Lines.Text) = 0) then begin
    702     Lines.LoadFromFile(FileName, TEncoding.Unicode);
    703     if (Length(Lines.Text) > 0) and (Pos(VCardBegin, Lines.Text) = 0) then begin
    704       Lines.LoadFromFile(FileName, TEncoding.BigEndianUnicode);
    705     end;
    706   end;
    707   {$ENDIF}
    708700  try
    709701    ImportFromStrings(Lines, Format, HumanReadableHeader);
Note: See TracChangeset for help on using the changeset viewer.