c - How to properly use `__attribute__((format (printf, x, y)))` for C11 U"unicode literals"? -
I use an application using char *
for everything and everywhere in UCS 4's I am porting to use because it is internal Unicode representation I use C11's U "Unicode Literals"
for defining the string, which is the char32_t
The array is expanded, which is essentially uint32_t
.
The problem is with the comment properly printf
-like functions like "format" is no longer char *
, the compiler refuses to compile it further Also, it will not be happy with char *
instead of char32_t *
format for % s
, I think is.
I do not rely on stdlib * printf
family, so the formatting is done entirely by implementing it.
In addition to completely disabling this feature, what is the right solution for this?
There is currently no way to do this in GCC, it is a known bug,
< / Div>
Comments
Post a Comment