Ralith/openxrs

BOM

rpavlik opened this issue · 2 comments

// Hack around leading garbage in 1.0 revision of XML

Was looking and wanted to comment on this - the leading "garbage" is in fact the "byte order mark" which keeps getting added and removed as people edit it. I have not yet found a convenient way to forcible add or remove it, but your upstream for file loading might consider handling it because some editors are apparently adding it automatically.

Seems like this has stayed gone for a while now. If it comes back I'll probably add a dynamic check, or maybe propose that the XML people do it; rust's filesystem ops are not text-specific so it wouldn't really belong there.

Yeah somebody contributed a script that removes it which I've run before each release 😁