diff options
| author | Martin Storsjö <martin@martin.st> | 2022-01-21 23:21:31 +0000 |
|---|---|---|
| committer | Martin Storsjö <martin@martin.st> | 2022-03-05 00:47:19 +0200 |
| commit | 45415ef91be5311939dfb0bf11a87b1722f68d02 (patch) | |
| tree | a569cf98f6eea9f3b59d60d67daf25b6aae1473a /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | 3347e7d40fd83ae762dcdb7c6161550e4190d6cf (diff) | |
[libcxx] Fix the ctype `is` (pointer version) function for Windows
Previously, this test snippet would report incorrect information:
F::mask m;
std::wstring in(L"\u00DA"); // LATIN CAPITAL LETTER U WITH ACUTE
f.is(in.data(), in.data() + 1, &m);
// m & F::lower would be set
The single-character version of the `is` function wasn't
affected by this issue though.
Define `_LIBCPP_CTYPE_MASK_IS_COMPOSITE_ALPHA` for Windows,
as the `alpha` / `_ALPHA` constant is a mask consisting of
multiple bits set, which avoids setting `alpha` whenver any
of the bits is set, in the `do_is` implementation.
On Windows, with the "C" locale, wchars are classified according
to their Unicode interpretation, just as in the en_US.UTF-8 locale on
all platforms.
Due to the differing classification of some characters, the
`scan_is` and `scan_not` tests are quite annoying to fix, thus just
ifdef out some of the tests for the "C" locale there - the code gets
tested with the more standard en_US.UTF-8 locale anyway.
Differential Revision: https://reviews.llvm.org/D120796
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
