[PATCH] D106577: [clang] Define __STDC_ISO_10646__

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 23 09:40:23 PDT 2021


cor3ntin added a comment.

In D106577#2899715 <https://reviews.llvm.org/D106577#2899715>, @aaron.ballman wrote:

> In D106577#2899711 <https://reviews.llvm.org/D106577#2899711>, @joerg wrote:
>
>> This patch is certainly wrong for NetBSD as the wchar_t encoding is up to the specific locale charset and *not* UCS-2 or UCS-4 for certain legacy encodings like the various shift encodings in East Asia.
>
> How does the value of a macro get impacted by a runtime locale?

More importantly, given that clang unconditionally encodes wide strings as UTF-32, how can, for example `towupper(L'α')` produce a sensible result?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106577



More information about the cfe-commits mailing list