help: Avoid depending on Gnulib mbswidth
commitbe49aa0c5d92b2e0b5cd2b0689c22b012faf2e23
authorNick Bowler <nbowler@draconx.ca>
Wed, 24 Jul 2024 02:10:55 +0000 (23 22:10 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 24 Jul 2024 05:51:36 +0000 (24 01:51 -0400)
tree3a694bbcb0cf082a404de3203c9c4f627b3cb012
parentc89cd8ff3ab63d7742a795937496c2d0a2f58675
help: Avoid depending on Gnulib mbswidth

The Gnulib mbswidth module is total overkill for this application.
Let's not require applications to include it just to support translated
help text.

The kind of problems Gnulib works around should not have any serious
negative effect on the help output, the issues should be limited
to minor alignment problems.  So just add a new configure test to
probe whether mbrtowc and wcwidth are available, use them if they
are, else don't bother.
Makefile.am
configure.ac
m4/wcwidth.m4 [new file with mode: 0644]
src/help.c
src/help.h
t/nls/gettext.c [new file with mode: 0644]
t/nls/gettext.h
t/nls/mbswidth.c [deleted file]
t/nls/mbswidth.h [deleted file]
tests/libs.at