"Marko Kreen" <markokr@gmail.com> writes:
> ATM I'm looking at str_tolower/upper internal implementation.
> They do:
> workspace[curr_char] = towlower(workspace[curr_char]);
> where workspace is wchar_t but towlower() operates on wint_t.
IIRC this is exactly comparable to the type situation for the
traditional <ctype.h> macros. The reason is that they are defined
to accept EOF in addition to actual char (or wchar) values.
regards, tom lane