View Issue Details

IDProjectCategoryView StatusLast Update
0036552FPCRTLpublic2020-01-16 11:25
ReporterCudaText manAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.3.1Product Build 
Target VersionFixed in Version3.3.1 
Summary0036552: TIniFile writes BOM, need to disable this
DescriptionFrom mailing list:
> Can you add TIniFile.WriteBom property? it's not quite enough, I need to
> disable it globally in entire app (I have 0000011:0000010 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.
TagsNo tags attached.
Fixed in Revisionr43939
FPCOldBugId
FPCTarget3.2.0
Attached Files

Activities

Michael Van Canneyt

2020-01-11 00:18

administrator   ~0120317

TInifile should never write a BOM, I will change the behaviour.

Michael Van Canneyt

2020-01-16 11:25

administrator   ~0120476

Ondrej Pokorny fixed this. There is now an Encoding property, and a WriteBOM property.
The WriteBOM is false by default for backwards compatibility, except for UTF16 encoding where it is true for Windows Compatibility.

Issue History

Date Modified Username Field Change
2020-01-11 00:12 CudaText man New Issue
2020-01-11 00:18 Michael Van Canneyt Assigned To => Michael Van Canneyt
2020-01-11 00:18 Michael Van Canneyt Status new => assigned
2020-01-11 00:18 Michael Van Canneyt Note Added: 0120317
2020-01-16 11:25 Michael Van Canneyt Status assigned => resolved
2020-01-16 11:25 Michael Van Canneyt Resolution open => fixed
2020-01-16 11:25 Michael Van Canneyt Fixed in Version => 3.3.1
2020-01-16 11:25 Michael Van Canneyt Fixed in Revision => r43939
2020-01-16 11:25 Michael Van Canneyt FPCTarget => 3.2.0
2020-01-16 11:25 Michael Van Canneyt Note Added: 0120476