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

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Dec 11 10:00:14 PST 2025


================
@@ -33,7 +42,28 @@ LIBC_INLINE int convert_char(Writer<write_mode> *writer,
     RET_IF_RESULT_NEGATIVE(writer->write(' ', padding_spaces));
   }
 
-  RET_IF_RESULT_NEGATIVE(writer->write(c));
+  if (to_conv.length_modifier == LengthModifier::l) {
----------------
michaelrj-google wrote:

given how this is set up it will now print nothing if a wide character is requested. That's fine but it should be mentioned in the documentation for this flag.

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


More information about the libc-commits mailing list