]> xenbits.xensource.com Git - libvirt.git/commit
tools: replace wcwidth() with g_unichar_* APIs
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 Jan 2020 13:40:54 +0000 (13:40 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Jan 2020 14:51:39 +0000 (14:51 +0000)
commit6485c2c0ae65225e52bb011f091df83ff3cdb1f5
tree707935d2faafe68e2c3aa44f690504fefa99bf11
parent540cf039262d74993f490272fe54e329497b4446
tools: replace wcwidth() with g_unichar_* APIs

The combination of g_unichar_iszerowidth and
g_unichar_iswide is sufficient to replicate the logic
of wcwidth() for libvirt.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/vshtabletest.c
tools/vsh-table.c