TIniFile writes BOM, need to disable this
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
From mailing list:
Can you add TIniFile.WriteBom property? it's not quite enough, I need to
disable it globally in entire app (I have ~10 ini objects), so
additional global default is needed (like Lazarus has global variables).
I need to disable BOM writing (on Linux) because ini file is read by Python code and Python code cannot handle BOM chars:
https://python-bugs-list.python.narkive.com/cBLhmbN6/issue7519-compileparser-can-t-read-files-with-bom-markers
I see this error from Python 3.7 in 2020 year.
Mantis conversion info:
- Mantis ID: 36552
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: r43939 (#98a494c5)
- Target version: 3.2.0