Opened 8 years ago

Closed 7 years ago

#6955 closed (wontfix)

Unicode XML breaks RelaxNGCompact validator

Reported by: jdunck Owned by: jdunck
Component: Validators Version: master
Severity: Keywords: unicode
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: UI/UX:


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)

rng-validator-unicode.diff (545 bytes) - added by jdunck 8 years ago.
Needs a test; just pointing out the problem for now. :-/

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by jdunck

Needs a test; just pointing out the problem for now. :-/

comment:1 Changed 8 years ago by jdunck

  • Owner changed from nobody to jdunck
  • Status changed from new to assigned

comment:2 Changed 8 years ago by telenieko

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 7 years ago by jdunck

  • Resolution set to wontfix
  • Status changed from assigned to closed

At some point after I logged this, the XML validator was removed from trunk. Closing this as wontfix.

Note: See TracTickets for help on using tickets.
Back to Top