[Mono-bugs] [Bug 51531][Wis] New - Unicode Encoding Problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 19 Mar 2004 09:33:16 -0500 (EST)


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 dick@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=51531

--- shadow/51531	2004-03-19 09:33:16.000000000 -0500
+++ shadow/51531.tmp.9555	2004-03-19 09:33:16.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 51531
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: shiziye@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Unicode Encoding Problem
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+type code below
+  byte[] b = new byte[] {255, 254, 115, 0, 104, 0, 105, 0};
+  string str = System.Text.Encoding.Unicode.GetString(b, 2, b.Length - 2);
+  Console.WriteLine(str);
+
+Actual Results:
+  output "hi";
+
+Expected Results:
+  output "shi";
+
+How often does this happen? 
+  every time;
+
+Additional Information:
+  there are many encoding problem with mono
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-03 22:24 -------
+With ICU this is working for me.
+
+------- Additional Comments From lupus@ximian.com  2003-12-06 04:45 -------
+The test definitely doesn't work with an icu-enabled runtime.
+In fact, the icu code is not even involved with the test case.
+To the original poster: make sure you file bugs for all the
+ecodings problems you found in mono, or it will be hard for us to fix
+them, if we don't know about them.
+
+------- Additional Comments From dick@ximian.com  2004-03-19 09:33 -------
+Fixed in CVS.