GNOME Bugzilla – Bug 67229
xmllint bug with --format option and character encoding
Last modified: 2009-08-15 18:40:50 UTC
There is (IMHO) a minor bug, when using xmllint with the --format option and a non utf-8 character encoding. When I do xmllint --format on a file like -- <?xml version="1.0" encoding="iso-8859-1"?> <bla>Ä</bla> -- xmllint outputs the document in utf-8 without removing the encoding declaration. I think it should either preserve the encoding (like xmllint does, when it's called without --format option) or output a correct encoding declaration. (2878 ~) xmllint --version xmllint: using libxml version 20411 (BTW: is it intended, that xmllint outputs usage info, when called with the --version option?)
The first one is actually a serious bug because the result is not well-formed XML. The patch is relatively simple: http://cvs.gnome.org/bonsai/cvsquery.cgi?module=gnome-xml&branch=HEAD&branchtype=match&dir=gnome-xml&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=01%2F13%2F02+15%3A31&maxdate=01%2F13%2F02+15%3A33&cvsroot=%2Fcvs%2Fgnome the second one was fixed too in CVS last week. thanks ! Daniel
Both should be closed in 2.4.13 thanks, Daniel