[Mono-bugs] [Bug 567362] New: System.String(char[]) constructor does not recognize unicode

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 28 00:18:33 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=567362

http://bugzilla.novell.com/show_bug.cgi?id=567362#c0


           Summary: System.String(char[]) constructor does not recognize
                    unicode
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: ed at anuff.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6

Constructing a string from unicode characters does not appear to work.

Reproducible: Always

Steps to Reproduce:
char[] chars = new char[]
{(char)12371,(char)12435,(char)12395,(char)12385,(char)12399};
string str = new String(chars);
Console.WriteLine(str);
Actual Results:  
Displays this:

?????

Expected Results:  
Should display this:

こんにちは

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list