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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79951 --- shadow/79951 2006-11-16 20:56:55.000000000 -0500 +++ shadow/79951.tmp.26228 2006-11-17 04:46:14.000000000 -0500 @@ -43,6 +43,37 @@ Additional Information: ------- Additional Comments From [EMAIL PROTECTED] 2006-11-16 14:47 ------- Created an attachment (id=18095) Test case + +------- Additional Comments From [EMAIL PROTECTED] 2006-11-17 04:46 ------- +It does not even compile fine with mcs. It is because CP437 is broken: + +Sanitized source code (can be compiled in ASCII mode): + +using System; +using System.Globalization; +using System.Text; + +public class Test +{ + public static void Main () + { + string l = +"qwe\u0119rtyuio\xF3pa\u0105s\u015Bdfghjkl\u0142z\u017Cx\u017Ac\u0107vbn\u0144m"; + string h = +CultureInfo.InvariantCulture.TextInfo.ToUpper (l); + + Encoding e437 = Encoding.GetEncoding (437); + byte [] bytes = e437.GetBytes (l); + foreach (byte b in bytes) Console.Write ("{0:X02} ", b); + Console.WriteLine (); + } +} + +expected: 71 77 65 65 72 74 79 75 69 6F A2 70 61 61 73 73 64 66 67 68 +6A 6B 6C 6C 7A 7A 78 7A 63 63 76 62 6E 6E 6D + +actual : 71 77 65 3F 72 74 79 75 69 6F A2 70 61 3F 73 3F 64 66 67 68 +6A 6B 6C 3F 7A 3F 78 3F 63 3F 76 62 6E 3F 6D _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
