bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Windows: stdout isn't properly set to binary mode


From: Ángel González
Subject: Re: [Bug-wget] Windows: stdout isn't properly set to binary mode
Date: Wed, 26 Jan 2011 19:39:30 +0100
User-agent: Thunderbird

Adrien a écrit:
> Hi,
>
> On windows, when running inside a terminal, there are two "outputs":
> stdout and console output (CONOUT). They are bound together by default
> but currently, wget changes CONOUT instead of stdout and that prevents
> redirection (content will always go to CONOUT and won't be
> redirected).
>
> The following patch changes that by using "_setmode(_fileno(stdout),
> _O_BINARY);", which is also much simpler.
>
> Available on cgit and attached to this mail.
> http://cgit.notk.org/adrien/mingw-builds/slackware64-current/tree/slackware64-current/source/n/wget/0005-Properly-set-stdout-to-binary-mode.patch
>
> Regards,
>
> Adrien Nader
Looks good.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]