[Mono-bugs] [Bug 656747] New: EncoderFallbackException is not thrown.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Dec 1 03:42:28 EST 2010
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: mono-bugs at lists.ximian.com
ReportedBy: himajin100000 at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list