"Ann & Jason Edmeades" us@edmeades.me.uk wrote:
My current plan, unless you have strong objections, is to make the wprintf msvcrt routines use WideCharToMultiByte on the string into the GetACP codepage before being written out, and add file tests for this into the msvcrt testsuite
You shouldn't really guess, you need to investigate how the things are supposed to work in Windows. IMO you are going wrong route by looking how msvcrt works instead of looking how cmd.exe does. Did you try to run native cmd.exe in WIne and see how it handles cp conversions, or under logger.exe in Windows?
I'm also guessing relay and snoop cant see internal dll calls, so that might explain the lack of calls. Perhaps something like wcstombs would be the key to this
Even if internal dll calls are not logged, wcstombs does an external call to do its job.