[libcxx-commits] [libcxx] [libc++][z/OS] Need to define _LIBCPP_HAS_UNICODE to 0 for EBCDIC (PR #119244)
Zibi Sarbinowski via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 9 10:37:04 PST 2024
https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/119244
This PR is needed since EBCDIC does not support UNICODE.
>From 32c66931d1bf7e17ad05625eb57ec03bad587f36 Mon Sep 17 00:00:00 2001
From: Zbigniew Sarbinowski <zibi at ca.ibm.com>
Date: Mon, 9 Dec 2024 18:49:37 +0000
Subject: [PATCH] Need to define _LIBCPP_HAS_UNICODE to 0 for EBCDIC
---
libcxx/include/__config_site.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libcxx/include/__config_site.in b/libcxx/include/__config_site.in
index fc01aaf2d8746e..b575a5de8e0d0b 100644
--- a/libcxx/include/__config_site.in
+++ b/libcxx/include/__config_site.in
@@ -28,7 +28,11 @@
#cmakedefine01 _LIBCPP_HAS_FILESYSTEM
#cmakedefine01 _LIBCPP_HAS_RANDOM_DEVICE
#cmakedefine01 _LIBCPP_HAS_LOCALIZATION
+#if defined(__MVS__) && !defined(__NATIVE_ASCII_F)
+#cmakedefine _LIBCPP_HAS_UNICODE 0
+#else
#cmakedefine01 _LIBCPP_HAS_UNICODE
+#endif
#cmakedefine01 _LIBCPP_HAS_WIDE_CHARACTERS
#cmakedefine _LIBCPP_HAS_NO_STD_MODULES
#cmakedefine01 _LIBCPP_HAS_TIME_ZONE_DATABASE
More information about the libcxx-commits
mailing list