clib2 wchar issues
Posted: Thu Jun 18, 2015 12:39 pm
Hi, just stepped into two problems regarding clib2 and some wchar functions. Most likely there's more but so far I only tried to use those:
In clib2/include/wchar.h:
The prototype for vswprintf is wrong, the destination pointer is a simple char* while it should be a wchar_t*.
It should be
or even better
(although that would probably be vsnwprintf then, other implementations are not really consequent / consistent here too ).
In clib2/include/wctype.h:
at least towupper isn't implemented it seems, at least the linker complains that it doesn't exist.
In clib2/include/wchar.h:
The prototype for vswprintf is wrong, the destination pointer is a simple char* while it should be a wchar_t*.
It should be
Code: Select all
int vswprintf(wchar_t* ws,const wchar_t* format,va_list arg);
Code: Select all
int vswprintf(wchar_t* ws,size_t len,const wchar_t* format,va_list arg);
In clib2/include/wctype.h:
at least towupper isn't implemented it seems, at least the linker complains that it doesn't exist.