Comments (6)
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.
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.
Yep, you're right, it fails on the first section. I'll look into it. Thanks for bringing this up.
from mini.
Fixed in 0.9.12. Thanks!
from mini.
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.
Fixed now in 0.9.13.
from mini.
Related Issues (16)
- Subject to multiple definition errors. HOT 1
- Location of the file in linux HOT 2
- Support for std::wstring HOT 5
- mIni doesn't parse properly strings HOT 4
- Warnings on Windows with VS2022 MSVC /W4 HOT 1
- this is the best lib for ini that i have ever tried HOT 3
- trailing comments on all lines HOT 4
- Output is being prefixed with gabage HOT 6
- Read a value and get a reference only if exists HOT 1
- not support multiple data types to return HOT 2
- error while using std::stoi with string from mINI. HOT 2
- const std::string HOT 1
- how about cross platform? HOT 1
- Trying to generate / rewrite the config only if there isn't one HOT 1
- no support comment to the right value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini.