[Mono-bugs] [Bug 76870][Nor] New - [PATCH]
ResXResource[Writer/Reader] cannot decode its own byte[] entries
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Dec 1 11:25:33 EST 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=76870
--- shadow/76870 2005-12-01 11:25:33.000000000 -0500
+++ shadow/76870.tmp.19462 2005-12-01 11:25:33.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 76870
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: robertj at gmx.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PATCH] ResXResource[Writer/Reader] cannot decode its own byte[] entries
+
+1.
+ResXReasourceReader doesn't correctly interpret
+
+<data name="name" type="System.Byte[] ..."
+ mimetype="application/x-microsoft.net.object.bytearray.base64">
+
+because it gets fooled by the non-null mimetype
+and it tries to decode the entry with a TypeConverter.
+
+2.
+byte[] b;
+write.AddResource (key, (object) b)
+ should pass control to AddResource (key, byte[]) if the value
+ is a byte[], otherwise the value will be serialized.
+
+I also added new unit tests.
+
+May I commit?
More information about the mono-bugs
mailing list