curl-users
Re: Windows Crash - CURL bug..?
Date: Wed, 29 Oct 2003 09:18:23 -0800
On : Wednesday, October 29, 2003 2:15 AM "Gisle Vanem" said:
>
> "Daniel Stenberg" <daniel_at_haxx.se> said:
>
> > How do we detect that the output just isn't an exotic charset we're not
that
> > familiar with? I bet the asian unicode charsets use a reasonably high
rate of
> > 8bit letters, not to mention the ISO8859-X family.
>
> Right.
>
> > Does isatty() work on Windows?
>
> Yes, but there's no pseudo terminals.
Well, there is an isatty() on current win32 environments. However it can't
reliably be used to determine if the current process/file descriptor is
talking to a "Console" device instead of a file and/or NUL device.
Specifically, if a file descriptor is open to a NUL: device, then isatty()
will return true. Duh! I think that it also returns true if you are
connected to a PIPE. Duh, again!!
- Mark Pizzolato
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-10-29