On Wed, Jan 1, 2020 at 7:07 PM Ondrej Pokorny <laza...@kluug.net> wrote:

> > 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
>
Where is it coming from?
There's nothing about that in WriteBOM nor LoadFromFile
http://docwiki.embarcadero.com/Libraries/Rio/en/System.Classes.TStrings.WriteBOM

http://docwiki.embarcadero.com/Libraries/Rio/en/System.Classes.TStrings.LoadFromFile


>From Delphi 10.3
WriteBOM is set to true, by default.
LoadFromFile doesn't affect the value in any manner (no matter if BOM is
present in the file or not).
(looking at the delphi code, doesn't suggest that WriteBOM is being changed
in any manner either)

thanks,
Dmitry
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to