Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cpplearner
Copy link
Contributor

@cpplearner cpplearner commented Jan 18, 2024

libc++'s "ascii" mode (controlled by the _LIBCPP_HAS_NO_UNICODE macro) means "every code unit outside ASCII is treated as a valid printable character". AFAIK we don't support such a mode.

For char, MSVC STL uses the code page specified by _MSVC_EXECUTION_CHARACTER_SET. Some code pages might consider most code units printable, but even Windows-1252 has a couple of non-printable characters.

For wchar_t, we don't have a way to opt-out UTF-16, and I don't see a need to do so.

@cpplearner cpplearner marked this pull request as ready for review January 18, 2024 14:11
@cpplearner cpplearner requested a review from a team as a code owner January 18, 2024 14:11
@CaseyCarter CaseyCarter added the test Related to test code label Jan 18, 2024
@StephanTLavavej StephanTLavavej changed the title Move libc++'s ascii tests to "LIKELY BOGUS TESTS" Skip libc++'s non-Standard ascii tests, reported upstream Jan 19, 2024
@CaseyCarter CaseyCarter removed their assignment Jan 19, 2024
StephanTLavavej added a commit to llvm/llvm-project that referenced this pull request Jan 20, 2024
…xx` (#78661)

As @cpplearner explained in microsoft/STL#4328:

> libc++'s "ascii" mode (controlled by the `_LIBCPP_HAS_NO_UNICODE`
> macro) means "every code unit outside ASCII is treated as a valid
> printable character". AFAIK we \[MSVC's STL\] don't support such a mode.

Because these files are testing a non-Standard mode, they should be
moved from `libcxx/test/std` to `libcxx/test/libcxx`.
@StephanTLavavej StephanTLavavej self-assigned this Jan 24, 2024
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit ee6bdb9 into microsoft:main Jan 25, 2024
@StephanTLavavej
Copy link
Member

Thanks for investigating what was happening here! 🕵️ 💡 😻

@cpplearner cpplearner deleted the iffy-ascii branch January 25, 2024 02:26
blueboxd pushed a commit to blueboxd/libcxx that referenced this pull request Feb 7, 2024
…xx` (#78661)

As @cpplearner explained in microsoft/STL#4328:

> libc++'s "ascii" mode (controlled by the `_LIBCPP_HAS_NO_UNICODE`
> macro) means "every code unit outside ASCII is treated as a valid
> printable character". AFAIK we \[MSVC's STL\] don't support such a mode.

Because these files are testing a non-Standard mode, they should be
moved from `libcxx/test/std` to `libcxx/test/libcxx`.

NOKEYCHECK=True
GitOrigin-RevId: 123ab34abc68e2e64720f9690aed5cb9e62a035d
arichardson pushed a commit to arichardson/llvm-project that referenced this pull request Nov 18, 2025
…xx` (#78661)

As @cpplearner explained in microsoft/STL#4328:

> libc++'s "ascii" mode (controlled by the `_LIBCPP_HAS_NO_UNICODE`
> macro) means "every code unit outside ASCII is treated as a valid
> printable character". AFAIK we \[MSVC's STL\] don't support such a mode.

Because these files are testing a non-Standard mode, they should be
moved from `libcxx/test/std` to `libcxx/test/libcxx`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Related to test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants