This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

wint_t


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]