dtolnay / serde-yaml

Strongly typed YAML library for Rust
Apache License 2.0
964 stars 164 forks source link

Demonstrate issue with deserializing documents starting with a Byte Order Mark (BOM) #345

Closed omaskery closed 1 year ago

omaskery commented 1 year ago

This PR purposely creates failing tests to demonstrate an issue, and therefore is not yet eligible for merging.

However, my hope is that this can act as the starting point for a conversation on how to diagnose & fix the issue discussed in #224.

Somehow, documents starting with a BOM and involving newlines seem to parse incorrectly. It is almost as though the newlines are erroneously considered end of document markers?