https://bugzilla.novell.com/show_bug.cgi?id=656747
https://bugzilla.novell.com/show_bug.cgi?id=656747#c0 Summary: EncoderFallbackException is not thrown. Classification: Mono Product: Mono: Class Libraries Version: 2.8.x Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: CORLIB AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101130 Firefox/4.0b8pre Firefox/4.0b8pre EncoderFallbackException is not thrown even if I set EncoderExceptionFallback when I get Encoding. Reproducible: Always Steps to Reproduce: 1.Run the following Code. using System; using System.Text; class X{ public static void Main(){ Encoding enc = Encoding.GetEncoding("US-ASCII",new EncoderExceptionFallback(),new DecoderExceptionFallback()); System.Console.WriteLine(enc.GetBytes(Char.ConvertFromUtf32(0x2704))); } } /* http://ideone.com/tbWPX */ Actual Results: System.Byte[] Expected Results: System.Text.EncoderFallbackException should be thrown. Microsoft Implementation does this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
