Go to file
Hans de Goede 7be0e88e7e vd_agent: Add caps for the agent to signal the guest line-ending (rhbz#752350)
When copy and pasting between a Linux guest and a Windows client or visa
versa, the line-endings of the text will usually be wrong for the other side,
so it is desirable to do automatic conversion.

However sometimes it is possible for text in the clipboard on Linux to have
MSDOS (CRLF) style line-endings, when copy and pasting from Linux to Linux
it is undesirable to automatically convert these, since this would not happen
when the apps were running directly on the same machine.

So we want to do automatic conversion only if the client and guest native
line-endings differ. This means that we cannot simply define one standard
line-ending for VD_AGENT_CLIPBOARD_UTF8_TEXT data.

Given the above it makes sense to only do conversion on one end. This
patch adds new capabilities which allow the guest-agent to advertise what
is the native line-ending of the guest.

This should be used by the client in the following way:
1) Check if the guest-agent advertises any line-ending type at all, if not
the guest line-ending is unknown -> do not convert
2) If the guest's native line-ending matches that of the platform the client
is running on, then do no not convert
3) If the guest's native line-ending is different from the client platform,
then convert received clipboard data into the client platform's native
line-ending, and convert clipboard data which will be send to the guest-agent
into the guest's native line-ending.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2013-06-05 14:23:52 +02:00
spice vd_agent: Add caps for the agent to signal the guest line-ending (rhbz#752350) 2013-06-05 14:23:52 +02:00
AUTHORS Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
autogen.sh autogen.sh: Honor NOCONFIGURE=1 2013-03-21 23:01:34 +01:00
ChangeLog Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
configure.ac Post-release bump 2013-02-01 04:34:54 +01:00
COPYING Add MIT style COPYING file 2010-02-04 16:23:24 +01:00
git.mk Update git.mk to latest version 2012-09-21 15:48:39 +02:00
includes.sed Add includes.sed file to handle include renaming 2010-02-04 18:12:07 +01:00
Makefile.am build-sys: use git.mk 2012-03-19 21:12:18 +01:00
NEWS Prepare for a 0.12.5 release 2013-03-06 16:19:56 +01:00
README Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
rename-identifiers.sh Add utility script to do C identifier renaming 2010-02-04 16:43:24 +01:00
renames fix up reames 2010-02-04 18:11:09 +01:00
spice-protocol.pc.in Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00