This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
wint_t
- To: <drepper at redhat dot com>
- Subject: wint_t
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Tue, 12 Jun 2001 17:40:08 +0100 (BST)
- cc: <libc-alpha at sources dot redhat dot com>
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