[Mono-bugs] [Bug 41613][Nor] Changed - Utf8Encoding.WIndowsCodePage returns different encoding.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 20 Apr 2003 11:48:29 -0400 (EDT)


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

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

--- shadow/41613	Sun Apr 20 00:39:13 2003
+++ shadow/41613.tmp.10991	Sun Apr 20 11:48:29 2003
@@ -1,14 +1,14 @@
 Bug#: 41613
 Product: Mono/Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: miguel@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -19,6 +19,17 @@
 The WindowsCodePage returns UnicodeEncoding.UNICODE_CODE_PAGE, but I
 believe that the right value might have to be UTF_CODE_PAGE
 
 The usage pattern is creating an encdoing from a code page:
 
 Encoding.GetEncoding (new UTF8Encoding().WindowsCodePage);
+
+------- Additional Comments From gonzalo@ximian.com  2003-04-20 11:48 -------
+Mono under windows and linux prints for these 2 lines:
+1200
+65001
+
+for these 2 lines:
+Console.WriteLine (new UTF8Encoding().WindowsCodePage);
+Console.WriteLine (new UTF8Encoding().CodePage);
+
+The same is done by MS runtime.