Commit 5eb934dfd78a8ff086ffef87f5d4ec18e2d45cf7

Bruno Haible 2012-02-04T19:13:34

isatty: Fix test failure of ptsname_r on native Windows. * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1, and don't set errno. (isatty): Test first whether fd is valid. Set errno when returning 0.