[Mono-bugs] [Bug 586901] New: RichTextBox didn't handle Unicode string correctly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 10 00:23:49 EST 2010


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

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


           Summary: RichTextBox didn't handle Unicode string correctly
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jingnan.si at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.3a3pre) Gecko/20100303 Minefield/3.7a3pre

After input unicode string into RichTextbox, For example some Chinese/Japanese
data.
call RichTextBox.RTF to get the rtf data, it found the code page of rtf is set
to 1252, but the unicode chars are not correctly encoded, it is in plain text.

so when reset the gotten rtf back to the RichTextBox, the unicode char changes
to "????"


Reproducible: Always

Steps to Reproduce:
1.compile and run the attached test.cs
gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll -target:winexe test.cs
-codepage:utf8
2.click on the button
3.the text in richtext box will change to ??
Actual Results:  
text in richtext box change to ??

Expected Results:  
should display the same text as before

-- 
Configure bugmail: http://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