On Fri, Jan 10, 2020 at 5:57 PM AlexeyT via fpc-pascal
<fpc-pascal@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:
> BOMCHARS[ref]

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

TIniFile might benefit from a WriteBom (Boolean) property ?

-- 
Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to