The Wget-patches list seems to have fallen off the net, so I send
you this simple patch directly.
2009-02-27 Gisle Vanem <[email protected]>
* main.c: "freopen (NULL,.." causes an assertion in MSVC debug-mode.
I.e. NULL isn't legal. But the "CONOUT$" device works fine.
--- hg-latest/src/main.c Thu Feb 26 16:58:03 2009
+++ ./main.c Fri Feb 27 07:46:13 2009
@@ -1124,7 +1124,7 @@
{
#ifdef WINDOWS
FILE *result;
- result = freopen (NULL, "wb", stdout);
+ result = freopen ("CONOUT$", "wb", stdout);
if (result == NULL)
{
logputs (LOG_NOTQUIET, _("\
--gv