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?
_______________________________________________ fpc-devel maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
