crudini fails to read the first section if the file has a BOM. Before we get into the BOM vs no BOM discussion, I would like to point out that the file was generated by a program that expects a BOM.
Here is the test file:
$ cat test.ini
[foo]
bar = baz
[woot]
hello = world
When the file has a BOM, we are not able to read the first section - the 2nd is fine:
crudini
fails to read the first section if the file has a BOM. Before we get into the BOM vs no BOM discussion, I would like to point out that the file was generated by a program that expects a BOM.Here is the test file:
$ cat test.ini
When the file has a BOM, we are not able to read the first section - the 2nd is fine:
But if we strip the BOM, we can:
This might be an
iniparse
issue of course (without having looked at the code).