]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/mbsalign: add function to calculate width
authorKarel Zak <kzak@redhat.com>
Wed, 22 Apr 2020 10:22:29 +0000 (12:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Apr 2020 10:22:29 +0000 (12:22 +0200)
commit0957fdca6ac5b41fa95f4a08d06f402e53d7e324
tree6dc569a268e95a97ed2f4592ab965a3a1008aedf
parent7c16238c069f171f376731c93435655be6df916b
lib/mbsalign: add function to calculate width

We already have mbs_safe_nwidth() but it assumes that all "bad" chars
will be encoded by \x<hex>. Now we need also function that do not care
about encoding.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/mbsalign.h
lib/mbsalign.c