"Ann & Jason Edmeades" us@edmeades.me.uk wrote:
+/* =========================================================================
- Output a formatted unicode string. Ideally this will go to the console
- and hence required WriteConsoleW to output it, however if file i/o is
- redirected, it needs to be WriteFile'd using OEM (not ANSI) format
- ========================================================================= */
+int XCOPY_wprintf(const wchar_t *format, ...) {
The described above behaviour should be implemented either inside of wprintf implementation in msvcrt, or inside of the console driver of WriteConsoleW depending on the test results IMO. That's why I asked you to solve msvcrt and console output problems separately. Also please do not introduce wchar_t, use WCHAR instead.