[libc-commits] [libc] [libc] Support %lc in printf (PR #169983)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Fri Dec 26 09:31:51 PST 2025


================
@@ -9,6 +9,11 @@
 #include "src/__support/macros/config.h"
 #include "src/stdio/sprintf.h"
 
+#ifndef LIBC_COPT_PRINTF_DISABLE_WIDE
+#include "hdr/types/wchar_t.h"
----------------
vonosmas wrote:

I think you'd need `wint_t` instead of `wchar_t` - see below.

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


More information about the libc-commits mailing list