[Mono-bugs] [Bug 464808] New: Clipboard doesn't round-trip unicode text in X11

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 9 07:12:09 EST 2009


           Summary: Clipboard doesn't round-trip unicode text in X11
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jonathan.l.anderson at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

When trying to copy/paste some unicode text, the text received is not the same
as the text supplied to the clipboard.  Here's a small example:

string original = "\u1000";
string result = Clipboard.GetText();
Console.WriteLine(result == original);

Explicitly specifying the UnicodeText format doesn't help either (it seems the
code defaults to UnicodeText anyway with no format specified).

Another note on this is that if you copy the text to the clipboard and then
paste into another non-mono application (e.g. gedit), the text pastes
correctly.  If you then copy that same text from gedit and paste into a mono
app, it is correct again.  But, if you copy and then paste from within the mono
app first, and then try to paste into another app, it's incorrect.

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