[fpc-pascal] TIniFile.WriteString gives file with BOM, bad

Bart bartjunk64 at gmail.com
Fri Jan 10 22:26:36 CET 2020

On Fri, Jan 10, 2020 at 5:57 PM AlexeyT via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

> 1) don't write BOM via WriteString

It doesn't AFAICS.
The BOM is written in UpdateFile.

> 2) if BOM is there, allow ReadString to find section at the file begin:

I can read/write IniFiles with BOM with fpc r43847, with and withoud
DefautSystemCodePage := CP_UTF8.

TIniFile might benefit from a WriteBom (Boolean) property ?


More information about the fpc-pascal mailing list