[Spice-devel] [PATCH spice-protocol] controller: Make all text utf-8

Hans de Goede hdegoede at redhat.com
Thu Oct 21 08:34:28 PDT 2010


We are making all text send over the controller socket utf-8, rather then
having somethings as 8 bit (hostname) and others unicode16.

Adjust the CONTROLLER_MENU_*_DELIMITER defines for this.
---
 spice/controller_prot.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/spice/controller_prot.h b/spice/controller_prot.h
index 6cf4ca0..38329c5 100644
--- a/spice/controller_prot.h
+++ b/spice/controller_prot.h
@@ -96,8 +96,8 @@ typedef struct ATTR_PACKED ControllerData {
     uint8_t data[0];
 } ControllerData;
 
-#define CONTROLLER_MENU_ITEM_DELIMITER L"\n"
-#define CONTROLLER_MENU_PARAM_DELIMITER L"\r"
+#define CONTROLLER_MENU_ITEM_DELIMITER "\n"
+#define CONTROLLER_MENU_PARAM_DELIMITER "\r"
 
 enum {
     CONTROLLER_MENU_FLAGS_SEPARATOR    = 1 << 0,
-- 
1.7.3.1



More information about the Spice-devel mailing list