VirtualBox

Changeset 3287 in vbox for trunk/src


Ignore:
Timestamp:
Jun 26, 2007 12:16:24 PM (18 years ago)
Author:
vboxsync
Message:

Updated the Linux shared clipboard code to provide absolutely minimal COMPOUND_TEXT support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/xclient/clipboard.cpp

    r3142 r3287  
    137137    /** X11 atom refering to the clipboard utf8 text format: UTF8_STRING */
    138138    Atom atomUtf8;
     139    /** X11 atom refering to the native X11 clipboard text format: COMPOUND_TEXT */
     140    Atom atomCText;
    139141
    140142    /** A list of the X11 formats which we support, mapped to our identifier for them, in the order
     
    11571159            }
    11581160        }
     1161    }
     1162    if (*atomTarget == g_ctx.atomCText)
     1163    {
     1164        /* We do not support compound text conversion.  However, as we are required to do so by
     1165           the X11 standards, we return Latin-1 if we are asked to do so anyway. */
     1166        LogRel(("An application on your guest system has asked for clipboard data in COMPOUND_TEXT format.  Since VirtualBox does not support this format, international characters will get lost.  Please set up your guest applications to use Unicode!\n"));
     1167        eFormat = LATIN1;
    11591168    }
    11601169    switch (eFormat)
     
    14971506                                      "text/plain;charset=ISO-10646-UCS-2", false);
    14981507    g_ctx.atomUtf8      = XInternAtom(XtDisplay(g_ctx.widget), "UTF_STRING", false);
     1508    g_ctx.atomCText     = XInternAtom(XtDisplay(g_ctx.widget), "COMPOUND_TEXT", false);
    14991509    /* And build up the vector of supported formats */
    15001510#ifdef USE_UTF16
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette