]> sourceware.org Git - glibc.git/commit
stdlib: Tests for mbrtoc8, c8rtomb, and the char8_t typedef.
authorTom Honermann <tom@honermann.net>
Thu, 30 Jun 2022 12:52:15 +0000 (08:52 -0400)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 6 Jul 2022 12:29:45 +0000 (09:29 -0300)
commitf4fe72a4f7b22588a7c902e39ddd3dcd244bbf9f
tree74f02f3d1d248ced7e8abae691a06305530ee80f
parent8bcca1db3d7c0dc900a4cad4054c1439baf73684
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>
wcsmbs/Makefile
wcsmbs/test-c8rtomb.c [new file with mode: 0644]
wcsmbs/test-mbrtoc8.c [new file with mode: 0644]
This page took 0.039739 seconds and 5 git commands to generate.