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

AlexeyT aaa5500 at ya.ru
Fri Jan 10 23:17:35 CET 2020

 >> 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.

Sorry, my mistake-- TIniFile can read this BOM file, but my software cannot:
a) I've fixed one place where my app reads ini files via TextFile.
b) I canNOT fix another place where PYTHON library reads ini file (Python has module for ini files).
c) So yes, I want to disable BOM writing at all.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200111/ec23b5ce/attachment.html>

More information about the fpc-pascal mailing list