[Mono-bugs] [Bug 67264][Cri] Changed - string.ctor with encoding obj
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 1 Oct 2004 13:44:53 -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: Critical
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 michael_cohen@maxtor.com.
http://bugzilla.ximian.com/show_bug.cgi?id=67264
--- shadow/67264 2004-09-30 17:21:14.000000000 -0400
+++ shadow/67264.tmp.27436 2004-10-01 13:44:53.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 67264
Product: Mono: Runtime
Version: unspecified
-OS:
+OS: unknown
OS Details: SuSE 9.1
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Critical
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: michael_cohen@maxtor.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -83,6 +83,44 @@
How often does this happen?
Every Time
Additional Information:
+
+------- Additional Comments From michael_cohen@maxtor.com 2004-10-01 13:44 -------
+Here's the C# code that will reproduce the problem:
+
+// project created on 10/1/2004 at 1:05 PM
+using System;
+
+class MainClass
+{
+ public static void Main(string[] args)
+ {
+ String s;
+ try
+ {
+
+ s = "";
+ unsafe
+ {
+ s = "";
+ SByte[] s1 = new SByte[5]{ 0x01, 0x02, 0x03,
+0x04, 0x00 };
+ fixed (sbyte* s2 = &s1[0])
+ {
+ s = new String(s2, 0, 4,
+System.Text.Encoding.ASCII);
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ Console.WriteLine(e.ToString());
+ return;
+ }
+
+ Console.WriteLine("Hello World!\n");
+ Console.WriteLine(s);
+ }
+}