Opened 17 years ago
Closed 15 years ago
#6955 closed (wontfix)
Unicode XML breaks RelaxNGCompact validator
Reported by: | Jeremy Dunck | Owned by: | Jeremy Dunck |
---|---|---|---|
Component: | Validators | Version: | dev |
Severity: | Keywords: | unicode | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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. :-/
Attachments (1)
Change History (4)
by , 17 years ago
Attachment: | rng-validator-unicode.diff added |
---|
comment:1 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
At some point after I logged this, the XML validator was removed from trunk. Closing this as wontfix.
Needs a test; just pointing out the problem for now. :-/