[Mono-bugs] [Bug 484451] New: XmlTextReader.Encoding returns null.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 11 16:03:59 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=484451


           Summary: XmlTextReader.Encoding returns null.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: RHEL 4
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: billholmes54 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=278934)
 --> (https://bugzilla.novell.com/attachment.cgi?id=278934)
File to reproduce.

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.7)
Gecko/2009021910 Firefox/3.0.7

When a XmlTextReader reads a document that does not have a processing
instruction null is returned from the Encoding property.

With the testing I have done MS.net returns UTF8.  I am not sure that it always
will.

Reproducible: Always

Steps to Reproduce:
1. Compile and run the attached sample

Actual Results:  
reader.Encoding is null

Expected Results:  
System.Text.UTF8Encoding

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list