-
Notifications
You must be signed in to change notification settings - Fork 108
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
File starting with a Byte Order Mark leads to UB #476
Comments
Could you elaborate on why it's better if the user does BOM skipping manually instead of it happening automatically during parsing? |
In fact dumping this on the user was not conforming to the standard. Working now on the implementation. |
Thanks. Coming from yaml-cpp, it did work automatically there before. The standard says that double-quoted scalars can also contain BOMs. While I have encountered files containing a BOM before, I've never once seen double-quoted scalars having them, not even in JSON. So I think it's fine to leave such exceptional cases to the user. |
Some character encodings, such as UTF-8, can start with a BOM. Rapid YAML currently does not give these any consideration.
The text was updated successfully, but these errors were encountered: