TheMillionDollarMan
Programmer
Hi,
I am using this function to print some japanese chars to a text file. It doesn't work however.
I am using
Windows 2000
VC6.0
The problem is that in the watch window I see the contents of buf and it looks fine. However when I open the text file fputws has printed everything before the Japanese chars and nothing after it.
Any ideas?
Thanks
wchar_t * buf = WSZALLOC(count);
size_t j = 0;
for (size_t i = 0; i < count; i++)
if (s != ZERO_WIDTH_SPACE)
buf[j++] = s;
buf[j] = L'\0';
fputws (buf, f);
I am using this function to print some japanese chars to a text file. It doesn't work however.
I am using
Windows 2000
VC6.0
The problem is that in the watch window I see the contents of buf and it looks fine. However when I open the text file fputws has printed everything before the Japanese chars and nothing after it.
Any ideas?
Thanks
wchar_t * buf = WSZALLOC(count);
size_t j = 0;
for (size_t i = 0; i < count; i++)
if (s != ZERO_WIDTH_SPACE)
buf[j++] = s;
buf[j] = L'\0';
fputws (buf, f);