From 77b13b42643991fc8c2b8942ca167eb7bf156908 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 16 Oct 2025 17:25:02 +0200 Subject: wide str and char literals --- test/pp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/pp.c b/test/pp.c index 85b4cba..db90f23 100644 --- a/test/pp.c +++ b/test/pp.c @@ -3,8 +3,8 @@ #include "pp.h" #include #include -#include -#include +#include +#include // #define CATl(a) a##bar #define CATr(a) foo##a @@ -39,6 +39,10 @@ main(void) "%s %g\n", str(Foo,5), xstr(Foo), CAT(1.5,e3f) + CAT(7,)-CAT(,1)); printf("join: \"%s\"\n", p); + setlocale(LC_ALL, "en_US.utf8"); + + printf("wide\t L\"%ls\", U+%x\n", L"abc123 猫,€á💫", L'🦋'); + PUT\ S\ ("Output ends here\\ @@ -47,6 +51,5 @@ S\ */ ); - CAT(ret,urn) 0; } -- cgit v1.2.3