Hi Michael
test-tty Has been compiled with VS2010 express (as w32 console app) and run
on windows 8 x64:
isatty (stdin): 64
IsConsoleHandle (stdin): 0
IsConsoleHandle2 (stdin): 1
ISATTY (stdin): 0
isatty (stdout): 64
IsConsoleHandle (stdout): 0
IsConsoleHandle2 (stdout): 1
ISATTY (stdout): 0
Thanks Nitzan. Looking at lseek doc, it appears the lseek call is not correct: 2nd and 3rd arguments should be swapped (I just copy-n-paste the suggestion from gnulib mailing list). Could you try it that way? (I don't think it'll make any difference, but you never know).
Could you also run the test program as:
test-tty <NUL
Michael.