Branch
Hash :
3d4a8bff
Author :
Date :
2025-08-26T00:02:22
nstrftime tests: Test in the UTF-8 environment on native Windows. Prompted by <https://debbugs.gnu.org/79296>. * tests/test-nstrftime-w32utf8.sh: New file. * tests/test-nstrftime-w32utf8.c: New file. * modules/nstrftime-tests (Files): Add them. Add windows-utf8.rc, windows-utf8.manifest, m4/windows-rc.m4. (configure.ac): Invoke gl_WINDOWS_RC. (Makeile.am): Arrange to build test-nstrftime-w32utf8 and run test-nstrftime-w32utf8.sh.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
Files:
tests/test-nstrftime-1.sh
tests/test-nstrftime-2.sh
tests/test-nstrftime.c
tests/test-nstrftime.h
tests/test-nstrftime-DE.c
tests/test-nstrftime-TH.c
tests/test-nstrftime-IR.c
tests/test-nstrftime-ET.c
tests/test-nstrftime-w32utf8.sh
tests/test-nstrftime-w32utf8.c
tests/windows-utf8.rc
tests/windows-utf8.manifest
tests/macros.h
m4/locale-fr.m4
m4/codeset.m4
m4/musl.m4
m4/windows-rc.m4
Depends-on:
atoll
c99
intprops
localcharset
setenv
setlocale
strerror
configure.ac:
gt_LOCALE_FR
gt_LOCALE_FR_UTF8
gl_MUSL_LIBC
gl_WINDOWS_RC
Makefile.am:
TESTS += \
test-nstrftime-1.sh \
test-nstrftime-2.sh \
test-nstrftime-DE \
test-nstrftime-TH \
test-nstrftime-IR \
test-nstrftime-ET
TESTS_ENVIRONMENT += \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
check_PROGRAMS += \
test-nstrftime \
test-nstrftime-DE \
test-nstrftime-TH \
test-nstrftime-IR \
test-nstrftime-ET
test_nstrftime_LDADD = $(LDADD) $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
test_nstrftime_DE_LDADD = $(LDADD) $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
test_nstrftime_TH_LDADD = $(LDADD) $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
test_nstrftime_IR_LDADD = $(LDADD) $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
test_nstrftime_ET_LDADD = $(LDADD) $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
if OS_IS_NATIVE_WINDOWS
TESTS += test-nstrftime-w32utf8.sh
noinst_PROGRAMS += test-nstrftime-w32utf8
test_nstrftime_w32utf8_LDADD = $(LDADD) test-nstrftime-windows-utf8.res $(SETLOCALE_LIB) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
test-nstrftime-windows-utf8.res : $(srcdir)/windows-utf8.rc
$(WINDRES) -i $(srcdir)/windows-utf8.rc -o test-nstrftime-windows-utf8.res --output-format=coff
MOSTLYCLEANFILES += test-nstrftime-windows-utf8.res
endif