When I compile and run the following program
#include <windows.h>
#include <wchar.h>
PWSTR Brackets1 = L"(%s)\n";
PWSTR Brackets2 = L"(%ls)\n";
int main()
{
wprintf(Brackets1, L"Hello");
wprintf(Brackets2, L"Hello");
return 0;
}
I get with Pelles C and Pelles runtime the following result:
(H)
(Hello)
With Pelles C and linking with msvcrt.lib, lcc-win32, MinGW (gcc 4.4.0) and Visual C++ 2008 Express Edition I get:
(Hello)
(Hello)
I think this is a differance in the hole family of wprintf-functions. I think not that the kind how Pelles runtime-function works is wrong. I just want to say, that there is a diffence and the most time Pelle tries to be compatible with the Microsoft products.