DBG_PRINTF( (T(“My format string %S”), myString.toUTF8()) );
That works fine on PC, but gets stuck in an infinite loop in String::vprintf (const tchar* const pf, va_list& args), as the buffer never seems to be big enough.
Now if you try to do this with %s instead of %S, it works on Mac but writes out crazy things on PC.
So the PC must be expecting a non-unicode string. Strange, because I do use the wide-character version of vprintf… Sorry, can’t think of a good workaround except casting it to different things on different platforms.