[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:10 PST 2025


================
@@ -1,3 +1,8 @@
+set(printf_test_flags "")
+if(${LIBC_TARGET_OS} STREQUAL "windows" OR WIN32)
+  list(APPEND printf_test_flags "-DLIBC_COPT_PRINTF_DISABLE_WIDE")
+endif()
----------------
michaelrj-google wrote:

I'd rather skip adding this and remove the `%lc` test from `parser_test.cpp`. It's just meant to test the specific parser internal logic, and the various types aren't actually needed for that. If you look, the parser test also doesn't have anything for floats right now since those are also an optional feature.

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


More information about the libc-commits mailing list