Description of problem: Attached is an XML file, which I believe is a correctly encoded UTF-16, little-endian encoded XML file (c.f. : http://www.w3.org/TR/REC-xml/#sec-guessing ) xmllint reads it fine. However running "file" on it gives blank output: file output.xml output.xml: Version-Release number of selected component (if applicable): file-4.17-8 How reproducible: 100% Steps to Reproduce: 1. Take an XML file, run "xmllint --encode UTF-16 input.xml > output.xml" 2. xmllint output.xml 3. file output.xml Actual results: xmllint reads the file fine but file gives no useful output: file output.xml output.xml: (i.e. blank output) Expected results: either: output.xml: XML 1.0 document text or: output.xml: XML 1.0 document text (UTF-16 little-endian encoding) or somesuch
Created attachment 151788 [details] Input file (sticking to 7-bit characters)
Created attachment 151789 [details] output file, should be UTF-16 little-endian encoding
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0208.html