[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mbrtowc, wcrtomb: add more tests
From: |
Bruno Haible |
Subject: |
mbrtowc, wcrtomb: add more tests |
Date: |
Fri, 03 Jan 2020 01:39:16 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-170-generic; KDE/5.18.0; x86_64; ; ) |
These two patches activate tests for locales with UTF-8 and GB18030
encodings on native Windows. The native setlocale() does not support
such locales. But the gnulib overridden setlocale() does, in some cases
(namely, with MSVC, the locales with UTF-8 encoding appear to work).
2020-01-02 Bruno Haible <address@hidden>
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.
2020-01-02 Bruno Haible <address@hidden>
wcrtomb: Add more tests.
* tests/test-wcrtomb-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-wcrtomb-w32-6.sh: Remove old comment.
* tests/test-wcrtomb-w32-7.sh: Likewise.
* modules/wcrtomb-tests (Files): Add these files.
(Depends-on): Add localcharset.
(TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
0001-mbrtowc-Add-more-tests.patch
Description: Text Data
0002-wcrtomb-Add-more-tests.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mbrtowc, wcrtomb: add more tests,
Bruno Haible <=