aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/Makefile
diff options
context:
space:
mode:
authorTom Honermann <tom@honermann.net>2022-06-30 08:52:15 -0400
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-07-06 09:29:45 -0300
commitf4fe72a4f7b22588a7c902e39ddd3dcd244bbf9f (patch)
tree74f02f3d1d248ced7e8abae691a06305530ee80f /wcsmbs/Makefile
parent8bcca1db3d7c0dc900a4cad4054c1439baf73684 (diff)
downloadglibc-f4fe72a4f7b22588a7c902e39ddd3dcd244bbf9f.zip
glibc-f4fe72a4f7b22588a7c902e39ddd3dcd244bbf9f.tar.gz
glibc-f4fe72a4f7b22588a7c902e39ddd3dcd244bbf9f.tar.bz2
stdlib: Tests for mbrtoc8, c8rtomb, and the char8_t typedef.
This change adds tests for the mbrtoc8 and c8rtomb functions adopted for C++20 via WG21 P0482R6 and for C2X via WG14 N2653, and for the char8_t typedef adopted for C2X from WG14 N2653. The tests for mbrtoc8 and c8rtomb specifically exercise conversion to and from Big5-HKSCS because of special cases that arise with that encoding. Big5-HKSCS defines some double byte sequences that convert to more than one Unicode code point. In order to test this, the locale dependencies for running tests under wcsmbs is expanded to include zh_HK.BIG5-HKSCS. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'wcsmbs/Makefile')
-rw-r--r--wcsmbs/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile
index bda281a..e6b9e87 100644
--- a/wcsmbs/Makefile
+++ b/wcsmbs/Makefile
@@ -52,6 +52,7 @@ tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
tst-c16c32-1 wcsatcliff tst-wcstol-locale tst-wcstod-nan-locale \
tst-wcstod-round test-char-types tst-fgetwc-after-eof \
tst-wcstod-nan-sign tst-c16-surrogate tst-c32-state \
+ test-mbrtoc8 test-c8rtomb \
$(addprefix test-,$(strop-tests)) tst-mbstowcs \
tst-wprintf-binary
@@ -59,7 +60,7 @@ include ../Rules
ifeq ($(run-built-tests),yes)
LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 en_US.ANSI_X3.4-1968 hr_HR.ISO-8859-2 \
- ja_JP.EUC-JP zh_TW.EUC-TW tr_TR.UTF-8 tr_TR.ISO-8859-9
+ ja_JP.EUC-JP zh_TW.EUC-TW tr_TR.UTF-8 tr_TR.ISO-8859-9 zh_HK.BIG5-HKSCS
include ../gen-locales.mk
$(objpfx)tst-btowc.out: $(gen-locales)