Use wchar.h to get wchar_t, not ctype.h.