Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 1995 22:36:33 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        hackers@FreeBSD.org, terry@lambert.org
Subject:   Re: Policy on printf format specifiers?
Message-ID:  <199509181236.WAA23935@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I'd like to add a format specifier '%S' to the list of format specifiers
>accepted by printf.  Well, kernel printf, anyway.

I don't want wchar_t's in the kernel.

>I'd also like the wchar_t value to be 16 rather than 32 bits.  Other
>than page 0 (Unicode), no other code pages in ISO-10646 have yet been
>allocated.

I think wchar_t's were made 32 bits so that they are the same as rune_t's.
I don't know if this is important.

>This would affect constant ISO 8859-1 strings using the 'L' quailfier;
>for example:

>main()
>{
>	printf( "%S\n", L"Hello World");
>}

How are you supposed to print such strings in ANSI C?

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509181236.WAA23935>