fix fgetwc test in api/wchar.c