Skip Menu |

This queue is for tickets about the YAML-Syck CPAN distribution.

Report information
The Basics
Id: 59715
Status: rejected
Priority: 0/
Queue: YAML-Syck

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.10
Fixed in: (no value)



Subject: Does not handle BOM's correctly
--- score: ... should (and does) parse to 'score' => ... but if there is a BOM like this pseudo example that highlights the BOM: <feff>--- score: ... It parses to '--- score' => ... which is probably really like this pseudo example that highlights the BOM: '<feff>--- score' => ... It should take the BOM into account when looking for a line that starts with '---' (it takes newline into account by removing them ...) It should also, if it does not already, use the BOM as a hint of what the data is encoded as but that is for another rt I think ;p
You are correct. YAML doesn't parse BOM to my knowledge. It probably won't in the future. I would encourage copious use of UTF8 to mitigate this. Patches welcome.