[Mono-bugs] [Bug 67264][Maj] Changed - string.ctor with encoding obj

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 2 Oct 2004 17:51:13 -0400 (EDT)


unimplemented
In-Reply-To: <bug-67264@chernobyl.ximian.com>
X-Bugzilla-Product: Mono: Runtime
X-Bugzilla-Component: misc
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: Major
X-Bugzilla-Severity: Unknown
X-Bugzilla-Target-Milestone: ---

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 bmaurer@users.sf.net.

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

--- shadow/67264	2004-10-02 17:25:14.000000000 -0400
+++ shadow/67264.tmp.8197	2004-10-02 17:51:13.000000000 -0400
@@ -124,6 +124,22 @@
 		Console.WriteLine(s);
 	}
 }
 
 ------- Additional Comments From miguel@ximian.com  2004-10-02 17:25 -------
 Ben, can you look at this issue?
+
+------- Additional Comments From bmaurer@users.sf.net  2004-10-02 17:51 -------
+Cleaner test:
+
+using System;
+using System.Text;
+
+unsafe class MainClass {
+	static void Main () {
+		sbyte [] s1 = new sbyte [] { 0x01, 0x02, 0x03, 0x04, 0x00 };
+		fixed (sbyte* s2 = s1) {
+			Console.WriteLine("Hello World!");
+			Console.WriteLine(new string (s2, 0, 4, Encoding.ASCII));
+		}
+	}
+}