mbrtowc: Add more tests.
commit5f5389b7b8d5037d77b37859a0c7821e61e90d4d
authorBruno Haible <bruno@clisp.org>
Fri, 3 Jan 2020 00:23:24 +0000 (3 01:23 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 3 Jan 2020 00:23:24 +0000 (3 01:23 +0100)
tree14faaf0fa5b8ee511a5441434e2a819c87594d6a
parentc8a1f21d3476a1d11bf6306827d61842893c7b0f
mbrtowc: Add more tests.

* tests/test-mbrtowc-w32.c: Include localcharset.h.
(test_one_locale): For the GB18030 and UTF-8 tests, verify that
locale_charset() returns the expected value; otherwise, skip the test.
* tests/test-mbrtowc-w32-6.sh: Remove old comment.
* tests/test-mbrtowc-w32-7.sh: Likewise.
* modules/mbrtowc-tests (Files): Add these files.
(Depends-on): Add localcharset.
(TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
ChangeLog
modules/mbrtowc-tests
tests/test-mbrtowc-w32-6.sh
tests/test-mbrtowc-w32-7.sh
tests/test-mbrtowc-w32.c