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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits