re #476: handle byte order marks

This commit is contained in:
Joao Paulo Magalhaes
2025-01-22 01:25:12 +00:00
parent a5dce46efb
commit 7911f37514
8 changed files with 460 additions and 12 deletions

View File

@@ -761,6 +761,11 @@ following situations:
reflects the usual practice of having at most 1 or 2 tag directives;
also, be aware that this feature is under consideration for removal
in YAML 1.3.
* Byte Order Marks: while ryml correctly handles BOMs at the beginning
of the stream or documents (as per the standard), BOMs inside
scalars are ignored. The [standard mandates that they should be
quoted](https://yaml.org/spec/1.2.2/#52-character-encodings) when
emitted, this is not done.
* ryml tends to be on the permissive side in several cases where the
YAML standard dictates that there should be an error; in many of these
cases, ryml will tolerate the input. This may be good or bad, but in