wcswidth bugged?
Probably there are there some workarounds or fixes?
#include <wchar.h>
#include <stdio.h>
#include <locale.h>
int main()
{
setlocale(LC CTYPE,"ruRU.UTF-8");
wchar_t s[2]={0x0435,0x0308};
printf("%d\n",wcswidth(s,2));
}
macmini, Mac OS X (10.5.5)