[libcxx-commits] [PATCH] D119930: [libcxx] [test] Use proper UTF-8 locales on Windows

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 16 14:29:15 PST 2022


mstorsjo updated this revision to Diff 409410.
mstorsjo added a comment.
Herald added a subscriber: arichardson.

Add a feature flag `broken-utf8-wchar-ctype`, check for this bug by building and running a code snippet (just like the locale detection); only test for that bug if building for Windows.

Refactored `hasAnyLocale` to use an intermediate helper `programSucceeds` instead of calling `programOutput` directly. (Also added a testcase for this new DSL function.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119930/new/

https://reviews.llvm.org/D119930

Files:
  libcxx/test/libcxx/selftest/dsl/dsl.sh.py
  libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp
  libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/underflow.pass.cpp
  libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_1.pass.cpp
  libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/tolower_many.pass.cpp
  libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_1.pass.cpp
  libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/toupper_many.pass.cpp
  libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_monthname.pass.cpp
  libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_weekday.pass.cpp
  libcxx/test/std/re/re.traits/translate_nocase.pass.cpp
  libcxx/test/support/platform_support.h
  libcxx/utils/libcxx/test/dsl.py
  libcxx/utils/libcxx/test/features.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119930.409410.patch
Type: text/x-patch
Size: 9992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220216/55417618/attachment.bin>


More information about the libcxx-commits mailing list