[Mono-bugs] [Bug 76758][Maj] Changed - String with nonstandard characters is not handled correctly.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 7 01:45:19 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 atsushi at ximian.com.


--- shadow/76758	2005-12-07 01:02:50.000000000 -0500
+++ shadow/76758.tmp.14513	2005-12-07 01:45:19.000000000 -0500
@@ -1,12 +1,12 @@
 Bug#: 76758
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: Tested under Windows XP SP2 and CentOS 3.4
-Status: REOPENED   
+Status: NEEDINFO   
 Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: admin at svwebhosting.com               
@@ -168,6 +168,29 @@
 ÿ in ansi character set is 255.
 So shouldn't System.Text.Encoding.Default.GetBytes("ÿ") return 255?
+------- Additional Comments From atsushi at ximian.com  2005-12-07 01:45 -------
+Either the description on ANSI or the documentation (which comes from
+ECMA CLI specification) is wrong. For example, I have Shift_JIS
+encoding for my default ANSI code page, but it never treats 255 as y
+BTW can you try this code *under MS.NET* and write the output here?
+Hopefully it tells us which ANSI codepage you used to save your source
+using System;
+using System.Globalization;
+public class Test
+  public static void Main ()
+  {
+    TextInfo ti = CultureInfo.CurrentCulture.TextInfo;
+    Console.WriteLine (ti.ANSICodePage);
+  }

More information about the mono-bugs mailing list