Hash :
2d422a55
Author :
Date :
2023-06-30T22:54:12
quotearg: Overcome wchar_t limitations. * lib/quotearg.c: Include <uchar.h> instead of <wchar.h>, <wctype.h>. (quotearg_buffer_restyled): Use mbrtoc32, c32isprint instead of mbrtowc, iswprint. * modules/quotearg (Files): Remove m4/mbstate_t.m4, m4/mbrtowc.m4 (redundant). (Depends-on): Add uchar, mbrtoc32, c32isprint. Remove wchar, wctype-h, mbrtowc. (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/quotearg-tests (Makefile.am): Link test-quotearg with $(LIBUNISTRING) $(LIBC32CONV). * modules/quotearg-simple (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/quotearg-simple-tests (Makefile.am): Link test-quotearg-simple with $(LIBUNISTRING) $(LIBC32CONV). -- * modules/quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV). -- * modules/acl (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/acl-tests (Makefile.am): Link test-set-mode-acl and test-copy-acl with $(LIBUNISTRING) $(LIBC32CONV). * modules/copy-file (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/copy-file-tests (Makefile.am): Link test-copy-file with $(LIBUNISTRING) $(LIBC32CONV). -- * modules/argmatch (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/argmatch-tests (Makefile.am): Link test-argmatch with $(LIBUNISTRING) $(LIBC32CONV). * modules/backup-rename (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/backupfile (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/human (Link): Add $(LIBUNISTRING) $(LIBC32CONV). -- * modules/sh-quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/sh-quote-tests (Makefile.am): Link test-sh-quote with $(LIBUNISTRING) $(LIBC32CONV). * modules/system-quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/system-quote-tests (Makefile.am): Link test-system-quote-main with $(LIBUNISTRING) $(LIBC32CONV). * modules/csharpcomp (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/csharpexec (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/javacomp (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/javaexec (Link): Add $(LIBUNISTRING) $(LIBC32CONV). -- * modules/string-desc-quotearg (Link): New section. * modules/string-desc-quotearg-tests (Makefile.am): Link test-string-desc-quotearg with $(LIBUNISTRING) $(LIBC32CONV). -- * modules/xmemcoll (Link): Add $(LIBUNISTRING) $(LIBC32CONV). -- * modules/closeout (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/readtokens-tests (Makefile.am): Link test-readtokens with $(LIBUNISTRING) $(LIBC32CONV). -- * modules/closein (Link): Add $(LIBUNISTRING) $(LIBC32CONV). * modules/closein-tests (Makefile.am): Link test-closein with $(LIBUNISTRING) $(LIBC32CONV). * modules/yesno-tests (Makefile.am): Link test-yesno with $(LIBUNISTRING) $(LIBC32CONV).
Status:
longrunning-test
Files:
tests/test-system-quote.sh
tests/test-system-quote-main.c
tests/test-system-quote-child.c
tests/macros.h
Depends-on:
stdbool
unistd
popen
pclose
configure.ac:
Makefile.am:
TESTS += test-system-quote.sh
check_PROGRAMS += test-system-quote-main test-system-quote-child
test_system_quote_main_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
# The test-system-quote-child program must be a real executable, not a libtool
# wrapper script, and should link against as few libraries as possible.
# Therefore don't link it against any libraries other than -lc.
test_system_quote_child_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
test_system_quote_child_LDADD =