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

Shubh Pachchigar via libc-commits libc-commits at lists.llvm.org
Sun Jan 11 15:28:09 PST 2026


================
@@ -173,7 +177,15 @@ template <typename ArgProvider> class Parser {
         section.has_conv = true;
         break;
       case ('c'):
-        WRITE_ARG_VAL_SIMPLEST(section.conv_val_raw, int, conv_index);
+        if (section.length_modifier == LengthModifier::l) {
+#ifndef LIBC_COPT_PRINTF_DISABLE_WIDE
----------------
shubhe25p wrote:

Resolving this as @michaelrj-google didn't raise any concerns in his latest review. Feel free to open again.

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


More information about the libc-commits mailing list