This PR to fix a few test cases related to class https://en.cppreference.com/w/cpp/locale/codecvt , as mentioned in document, class is converting UTF16 and UTF8 or UTF32 and UTF8, character type is deprecated in c++20 and it needs explicitly specify it is UTF8 string literal. Current test cases assume 1 byte character is ASCII or Unicode character which is not true on z/OS platform. UTF8/16/32 information can be found in https://naveenr.net/unicode-character-set-and-utf-8-utf-16-utf-32-encoding/ and EBCDIC and ASCII character value can be found in http://www.simotime.com/asc2ebc1.htm
Details
- Reviewers
uweigand hubert.reinterpretcast abhina.sreeskantharajan fanbo-meng muiez • Quuxplusone ldionne - Group Reviewers
Restricted Project - Commits
- rG7704fedfff6e: [SystemZ][z/OS][libcxx]: fix libcxx test cases related to codecvt class UTF8
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp | ||
---|---|---|
34 | OK. should we disable those test to avoid run with c++20 then ? I can modify test case to run only ASCII mode if we keep old form. |
libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp | ||
---|---|---|
34 | OK. I can keep old form. just run ASCII mode on z/OS for both patch. |
LGTM, but please add a 1-2 line comment for each UNSUPPORTED explaining why it fails. You can copy/paste the comment, it's fine. Actually, it even helps cause you can then grep for:
// <the-comment> // UNSUPPORTED: target={{.+}}-zos{{.*}}
and you'll find all tests that are marked as unsupported for the same reason.
Please read the comments even when you get an approval. https://reviews.llvm.org/rG7704fedfff6ef5676adb6415f3be0ac927d1a746 didn't apply my requested change. I LGTM'd the patch because I trusted you'd apply the feedback and didn't want to block you until I could look at it again -- not because no changes were required.
hi nothing to do w3ith Muiez, I asked his help to commit it for me. I didnt notice your comments. I can add comment no problem
Same as in the other patch D106151: u8"some text" is a syntax error in C++03, so (only) the C++03 run is failing.