[fpc-devel] TStrings and BOM

Werner Pamler werner.pamler at gmx.net
Thu Jan 2 01:07:29 CET 2020


Am 02.01.2020 um 00:51 schrieb Ondrej Pokorny:
> The WriteBOM property has a valid purpose - it is set in LoadFrom*
> according to the BOM presence in the loaded file. I.e. if you do:
>
> MyStrings.LoadFromFile('abc'); // WriteBOM and Encoding properties are
> set here
> MyStrings.SaveToFile('abc'); // they are used here to save the file as
> it was loaded
Maybe I am blind here, but our TStrings.LoadFrom* methods do NOT seem to
modify the WriteBOM property - otherwise I would not have posted. Why
would it be called *Write*BOM if it were also for reading?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200102/5c16209d/attachment-0001.html>


More information about the fpc-devel mailing list