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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs