]> git.ipfire.org Git - thirdparty/tar.git/commit
Support multi-byte --transform='...\L...' etc
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Sep 2023 04:21:18 +0000 (23:21 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Sep 2023 04:23:41 +0000 (23:23 -0500)
commitc1e277476c4bf139cac12f26f96d6e74115a0829
tree23fa6a10b71e0553a5f3104c534242e3d3747d5e
parent783321ff1b5ec531ea5a18d55ed2dd2ba5430701
Support multi-byte --transform='...\L...' etc

Support upcasing and downcasing in multi-byte locales.
* gnulib.modules: Add c32rtomb, c32tolower, c32toupper,
mbrtoc32-regular.
* src/transform.c: Do not include ctype.h.  Include mcel.h.
(stk, stk_init): Move up.
(run_case_conv): Return void, not char *.  Append result to
stk directly; this avoids the need for a separate allocation.
All callers changed.  Do not assume a single-byte locale.
* tests/xform04.at: New test.
* tests/Makefile.am (TESTSUITE_AT):
* tests/testsuite.at: Add it.
NEWS
gnulib.modules
src/transform.c
tests/Makefile.am
tests/testsuite.at
tests/xform04.at [new file with mode: 0644]