]> xenbits.xensource.com Git - libvirt.git/commitdiff
vsh-table: Fix broken build on centos and rhel
authorSimon Kobyda <skobyda@redhat.com>
Wed, 29 Aug 2018 07:48:10 +0000 (09:48 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 29 Aug 2018 08:23:54 +0000 (10:23 +0200)
The reason of broken build was that centos and rhel use older version of
glibc. These versions of glibc on these platforms cannot work with newer
unicodes, thus causing functions iswprint() and wcwidth() return
unexpected values causing the vshtabletest to fail. Therefore, let's
replace the new unicode characters causing issues with some older ones
to fix the test suite, as the issue would still persist during runtime.

Signed-off-by: Simon Kobyda <skobyda@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tests/vshtabletest.c

index 1b07c37c561d283297c4df6895ad7c2846671992..9e9c0452269b0c8a2d0dafb59e1f48d71fc7c9e3 100644 (file)
@@ -123,7 +123,7 @@ testUnicode(const void *opaque ATTRIBUTE_UNUSED)
 " Id   名稱                  государство  \n"
 "-----------------------------------------\n"
 " 1    fedora28              running      \n"
-" 2    🙊🙉🙈rhel7.5🙆🙆🙅   running      \n";
+" 2    つへソrhel7.5つへソ   running      \n";
     vshTablePtr table;
 
     table = vshTableNew("Id", "名稱", "государство", NULL);
@@ -131,7 +131,7 @@ testUnicode(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     vshTableRowAppend(table, "1", "fedora28", "running", NULL);
-    vshTableRowAppend(table, "2", "🙊🙉🙈rhel7.5🙆🙆🙅", "running",
+    vshTableRowAppend(table, "2", "つへソrhel7.5つへソ", "running",
                       NULL);
 
     act = vshTablePrintToString(table, true);