Unicode XML breaks RelaxNGCompact validator
|Reported by:||Jeremy Dunck||Owned by:||Jeremy Dunck|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
In Django, the RelaxNGCompact validator writes out the field data to a temp file, then shells out to jing to perform RNG validation on that XML.
It's been broken for unicode data since the unicode branch landed. I guess not that many people use the RelaxNGCompact validator. ;-)
The fix is trivial-- just call smart_str on field data on its way into the file.
I'd provide tests, but I'm sort of overworked at the moment. :-/