Git Product home page Git Product logo

Comments (6)

metayeti avatar metayeti commented on June 3, 2024

Any examples that reproduce the behavior? I'm not sure how that would break the parser but I'm willing to look into it if you can provide some more details, preferably a testcase with the file that breaks. Thanks :)

from mini.

huqng avatar huqng commented on June 3, 2024

A Utf8BOM file has a 0xEFBBBF header. Your parser cannot read any [section] at the first line, since it doen't start with '[', trimed or not. Adding a blank line before the first [section] would solve this.
Any ini files with a [section] at the first line and with a utf8bom encoding can reproduce such a behavior.
Config.zip
I cannot just upload a .ini file, so I provide a zip archive.

from mini.

metayeti avatar metayeti commented on June 3, 2024

Yep, you're right, it fails on the first section. I'll look into it. Thanks for bringing this up.

from mini.

metayeti avatar metayeti commented on June 3, 2024

Fixed in 0.9.12. Thanks!

from mini.

metayeti avatar metayeti commented on June 3, 2024

Actually, this might still be an issue as writing back to BOM-encoded file might fail as well. Need to look into that too.

from mini.

metayeti avatar metayeti commented on June 3, 2024

Fixed now in 0.9.13.

from mini.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.