Hash :
a5c87eca
Author :
Date :
2024-12-23T16:56:37
localcharset tests: Test in the UTF-8 environment on native Windows. * m4/windows-rc.m4: New file. * tests/test-localcharset-w32utf8.sh: New file. * tests/test-localcharset-w32utf8.c: New file. * tests/windows-utf8.rc: New file. * tests/windows-utf8.manifest: New file. * modules/localcharset-tests (Files): Add these files. (Depends-on): Add test-xfail. (configure.ac): Invoke gl_WINDOWS_RC. (Makefile.am): Arrange to compile test-localcharset-w32utf8 and run test-localcharset-w32utf8.sh.
Files:
tests/test-localcharset.c
tests/test-localcharset-w32utf8.sh
tests/test-localcharset-w32utf8.c
tests/windows-utf8.rc
tests/windows-utf8.manifest
m4/windows-rc.m4
Depends-on:
setlocale
test-xfail
configure.ac:
gl_WINDOWS_RC
Makefile.am:
noinst_PROGRAMS += test-localcharset
test_localcharset_LDADD = $(LDADD) $(SETLOCALE_LIB)
if OS_IS_NATIVE_WINDOWS
TESTS += test-localcharset-w32utf8.sh
noinst_PROGRAMS += test-localcharset-w32utf8
test_localcharset_w32utf8_LDADD = $(LDADD) test-localcharset-windows-utf8.res $(SETLOCALE_LIB)
test-localcharset-windows-utf8.res : $(srcdir)/windows-utf8.rc
$(WINDRES) -i $(srcdir)/windows-utf8.rc -o test-localcharset-windows-utf8.res --output-format=coff
MOSTLYCLEANFILES += test-localcharset-windows-utf8.res
endif