[libcxx-commits] [libcxx] Implement P1885R12: `<text_encoding>` header (PR #141312)

William Tran-Viet via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 24 11:53:04 PDT 2025


================
@@ -0,0 +1,49 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#  pragma GCC system_header
+#endif
+
+#include <__locale_dir/locale_base_api.h>
+
+#include <text_encoding>
+
+#if __has_include(<langinfo.h>)
+#  include <langinfo.h>
+#endif
+
+#if _LIBCPP_STD_VER >= 26
----------------
smallp-o-p wrote:

Pardon my unfamiliarity with the codebase, but wouldn't this prevent the library from being built, since it's built with `-std=c++23`? In that case this PR would probably have to be parked (once all the requested changes are made and approvals are given) until the library is built with `-std=c++26`. 

https://github.com/llvm/llvm-project/pull/141312


More information about the libcxx-commits mailing list