[grilo] test-ui: Fix garbled UTF-8 output



commit c80c75e682edc76e73e4fca5d772711226bc9d53
Author: Jens Georg <jensg openismus com>
Date:   Tue Jul 17 15:35:23 2012 +0200

    test-ui: Fix garbled UTF-8 output
    
    g_strdup_value_contents uses g_strescape on anything that's not ASCII
    which garbles anything fancy in the UI.
    
    This fixes https://bugzilla.gnome.org/show_bug.cgi?id=682791

 tools/grilo-test-ui/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index cf3ed34..22d0c62 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -510,6 +510,8 @@ value_description (const GValue *value)
       && G_VALUE_TYPE (value) == G_TYPE_DATE_TIME) {
     GDateTime *date_time = g_value_get_boxed (value);
     return g_date_time_format (date_time, "%FT%H:%M:%SZ");
+  } else if (G_VALUE_HOLDS_STRING (value)) {
+      return g_value_dup_string (value);
   }
 
   return g_strdup_value_contents (value);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]