Unicode XML breaks RelaxNGCompact validator
|Reported by:||jdunck||Owned by:||jdunck|
|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. :-/
Change History (4)
Changed 6 years ago by jdunck
comment:1 Changed 6 years ago by jdunck
- Owner changed from nobody to jdunck
- Status changed from new to assigned