Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows EOL parse error #1

Closed
oicchris opened this issue Dec 7, 2019 · 2 comments
Closed

Windows EOL parse error #1

oicchris opened this issue Dec 7, 2019 · 2 comments

Comments

@oicchris
Copy link

oicchris commented Dec 7, 2019

The same issue that affected toml11 (Issue #16) is currently affecting Boost.toml. \r\n causes a parse error in toml::parse().

Error:
toml::detail::parse_ml_table: invalid line appeared -> toml::detail::parse_key_value_pair: toml::detail::parse_key: the next token is not a key ->

P.S. Thank you very much for your hard work! Awesome!

@ToruNiina
Copy link
Owner

Thank you for telling me about the problem!
I've changed the code to open a file stream in binary mode. This will fix the problem.

@oicchris
Copy link
Author

oicchris commented Dec 9, 2019

Thank you very much for the fix! I've tested it on my sample and it succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants