[libc-commits] [libc] [libc] Support %lc in printf (PR #169983)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Jan 6 10:02:34 PST 2026
================
@@ -3487,3 +3492,64 @@ TEST(LlvmLibcSPrintfTest, IndexModeParsing) {
"why would u do this, this is such a pain. %");
}
#endif // LIBC_COPT_PRINTF_DISABLE_INDEX_MODE
+
+#ifndef LIBC_COPT_PRINTF_DISABLE_WIDE
+TEST(LlvmLibcSprintfTest, WideCharConversion) {
+ char buff[16];
+ int written;
+
+ // Euro sign is a 3-byte UTF-8 character.
----------------
michaelrj-google wrote:
please add tests for 1 and 2 byte wide characters
https://github.com/llvm/llvm-project/pull/169983
More information about the libc-commits
mailing list