[all-commits] [llvm/llvm-project] 7704fe: [SystemZ][z/OS][libcxx]: fix libcxx test cases rel...

NancyWang2019 via All-commits all-commits at lists.llvm.org
Tue Jul 20 10:03:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7704fedfff6ef5676adb6415f3be0ac927d1a746
      https://github.com/llvm/llvm-project/commit/7704fedfff6ef5676adb6415f3be0ac927d1a746
  Author: Nancy Wang <wangn at ca.ibm.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

  Changed paths:
    M libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp
    M libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp
    M libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp
    M libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp

  Log Message:
  -----------
  [SystemZ][z/OS][libcxx]: fix libcxx test cases related to codecvt class UTF8

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

Differential Revision: https://reviews.llvm.org/D106153




More information about the All-commits mailing list