]> git.ipfire.org Git - thirdparty/gnulib.git/commit
propername-lite: lighten it up some more
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Sep 2025 07:15:38 +0000 (00:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Sep 2025 07:20:57 +0000 (00:20 -0700)
commitc02885a511d201713dd2283b6c23d3bead91ee2c
tree04eef02a7ee5d37fc3af55bfeb208e895c2afebe
parent751e42b0bc5c703eb2fa376abfddca1d1500145d
propername-lite: lighten it up some more

This should help GNU diffutils avoid some Gnulib modules.
* lib/propername-lite.c: Do not include c-strcase.h, localcharset.h.
Include <uchar.h> and mbrtowc32 if available.
Use __has_include to detect this; that should be good enough nowadays.
Use native mbrtoc32 instead of Gnulib replacement; that should
be good enough.  2nd arg is now possibly unused.
Use mbrtoc32, if available, to determine whether UTF-8 is being used,
to avoid dependencies.
* modules/propername-lite (Depends-on):
Remove localcharset, c-strcasecmp.
ChangeLog
lib/propername-lite.c
modules/propername-lite