wint_t
Joseph S. Myers
jsm28@cam.ac.uk
Tue Jun 12 09:40:00 GMT 2001
Why is wint_t for GNU/Linux defined as unsigned int? AFAICT this
definition was chosen (by Ulrich Drepper) in 1996. The fact that wint_t
need not (as specified in AMD1 then C99) be the promoted version of
wchar_t is now seen to be confusing, in particular to have confused the
authors of AMD1 who added an example for fprintf (see C99 7.19.6.1#18,
last line) that has undefined behavior. This is now the subject of a
proposed UK DR; it might be useful to have the rationale for the GNU/Linux
choice to encourage the resolution being to fix the example rather than
another proposed resolution of changing wint_t to be wchar_t promoted.
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Libc-alpha
mailing list