[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
================
@@ -20,20 +29,49 @@ namespace printf_core {
template <WriteMode write_mode>
LIBC_INLINE int convert_char(Writer<write_mode> *writer,
const FormatSection &to_conv) {
- char c = static_cast<char>(to_conv.conv_val_raw);
- constexpr int STRING_LEN = 1;
+ char buffer[MB_LEN_MAX];
----------------
vonosmas wrote:
Do you need to include libc/hdr/limits_macros.h to ensure `MB_LEN_MAX` is available?
https://github.com/llvm/llvm-project/pull/169983
More information about the libc-commits
mailing list