[PATCH 4/4] programs/attrib: write redirected output in UTF8

Alexandre Julliard julliard at winehq.org
Mon Apr 18 10:44:27 CDT 2022


Eric Pouech <eric.pouech at orange.fr> writes:

> Le 18/04/2022 à 12:11, Alexandre Julliard a écrit :
>
>  Eric Pouech <eric.pouech at gmail.com> writes:
>
>  Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
>
> ---
>  programs/attrib/attrib.c |    9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
>
>
> That doesn't seem to match the Windows behavior.
>
> well, the idea was to have a nicer integration when redirected to
> streams expressed from unix command line
>
> if you really want to stick to pure windows behavior in all cases,
> GetConsoleCP() is wrong anyway...  we need to use CP_ACP
> unconditionnaly AFAICS

Maybe Windows doesn't use GetConsoleCP(), but at least here it's
definitely using OEM codepage.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list