Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-07

TIniFile and BOM

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jansen, Dirk

Hello,

the TIniFile object has some problems with ini-files starting with a UTF-8 BOM. A section starting in the first line will be ignored and notepad.exe always adds the BOM if it thinks the file is an utf8 file.

If I fix this in the IniFile.pas how do I manage to get this fix into the FPC sources?

Dirk

Reply by email

Michael Van Canneyt
to Jansen, Dirk
Dirk wrote 8 lines
Hello, the TIniFile object has some problems with ini-files starting with a UTF-8 BOM. A section starting in the first line will be ignored and notepad.exe always adds the BOM if it thinks the file is an utf8 file. If I fix this in the IniFile.pas how do I manage to get this fix into the FPC sources?

Submit a patch in the FPC bugtracker.

Michael.

Reply by email