non-valid XML output when input has utf-8 comments

Bug #340451 reported by Andrej Shadura
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Critical
Jon A. Cruz
inkscape (Debian)
Fix Released
Unknown

Bug Description

Inkscape 0.46 produces non-valid XML output when saving SVG if original file contained comments with utf-8 text.
Steps to reproduce:
1. Open test.svg (attached)
2. Save as a copy.
3. In the output file, utf-8 comments appear garbled: all non-Latin (?) characters are in utf-16.

Revision history for this message
Andrej Shadura (andrew.sh) wrote :
Revision history for this message
Andrej Shadura (andrew.sh) wrote :
Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Changed in inkscape:
assignee: nobody → jon-joncruz
status: Confirmed → In Progress
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

Minor note... the output is not in UTF-16. Rather it is just masked to the lower 8-bits of each Unicode character.

Changed in inkscape:
importance: High → Critical
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

Added code to do an encoding fixup for comment writing.
Fixed in SVN revision 20900.

Changed in inkscape:
status: In Progress → Fix Released
Changed in inkscape (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.