Fix xcopy so output is either unicode (console) or oem (file)

Dmitry Timoshkov dmitry at codeweavers.com
Fri Apr 20 21:39:51 CDT 2007


"Ann & Jason Edmeades" <us at 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.

-- 
Dmitry.



More information about the wine-devel mailing list