"Jaco Greeff" jaco@puxedo.org writes:
I'm not sure if I should send the whole patch or just do increments for the new stuff. At this point it is everything, including cleanups of the test case and use of correct WideCharToMultiByte as suggested by Dimitri. In additions the configure.ac patch for the dlls/msvcrt/tests/Makefile.in is added.
As always, comments are very welcome to get this thing bedded down finally.
- you can't use the libc printf to print unicode chars, the format is not the same - WideCharToMultiByte can output several characters for a single unicode char, you need to take that into account for buffer sizes - you cannot cast a WCHAR* into a CHAR* to convert the format to ASCII - there's no point in using strncat if you don't pass it the real size of the buffer - please don't copy code from MSDN, it is copyrighted by Microsoft.