[PATCH] D155610: [Clang][Sema] Fix display of characters on static assertion failure
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 10 11:44:18 PDT 2023
hubert.reinterpretcast added a comment.
In D155610#4575579 <https://reviews.llvm.org/D155610#4575579>, @cor3ntin wrote:
> @hubert.reinterpretcast It does not, Unicode characters are only escaped in Diagnostics.cpp, and I think this is what we want.
> Currently, llvm assume UTF-8 terminal, except on Windows where we convert to UTF-16 and use the wide windows APIs (`raw_fd_ostream::write_impl`).
I am skeptical of the extent to which that assumption is exercised in a problematic manner today. The characters being emitted (aside from the [U+0020, U+007E] fixed message text itself) generally come from the text of the source file, which is generally written using characters that the user can display (even if they are not "basic Latin" characters).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155610/new/
https://reviews.llvm.org/D155610
More information about the cfe-commits
mailing list