[libcxx-commits] [libcxx] [libcxx] proper guarding for locale usage in filesystem on Windows (PR #165470)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 28 14:26:31 PDT 2025


================
@@ -24,28 +27,30 @@
 
 _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM
 
+#  if !defined(_LIBCPP_WIN32API) || _LIBCPP_HAS_LOCALIZATION
----------------
moleium wrote:

That would cause a regression by disabling `u8path` on non Windows platforms where it works correctly without localization. fix is targeted to disable the function only on the broken configuration (Windows without localization), preserving functionality elsewhere

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


More information about the libcxx-commits mailing list