Re: [GHC] #2628: isatty behaves unexpectedly on mingw

2008-10-04 Thread GHC
#2628: isatty behaves unexpectedly on mingw
+---
 Reporter:  igloo   |  Owner: 
 Type:  bug | Status:  new
 Priority:  normal  |  Milestone:  6.10.2 
Component:  libraries/base  |Version:  6.8.3  
 Severity:  normal  | Resolution: 
 Keywords:  | Difficulty:  Unknown
 Testcase:  2228|   Architecture:  x86
   Os:  Windows |  
+---
Changes (by igloo):

  * milestone:  6.10.1 = 6.10.2

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2628#comment:1
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #2628: isatty behaves unexpectedly on mingw

2008-09-27 Thread GHC
#2628: isatty behaves unexpectedly on mingw
---+
Reporter:  igloo   |   Owner: 
Type:  bug |  Status:  new
Priority:  normal  |   Milestone:  6.10.1 
   Component:  libraries/base  | Version:  6.8.3  
Severity:  normal  |Keywords: 
  Difficulty:  Unknown |Testcase:  2228   
Architecture:  x86 |  Os:  Windows
---+
 test 2228 is failing for me in an msys window on Windows:
 {{{
 -BlockBuffering Nothing
 +LineBuffering
  BlockBuffering Nothing
 }}}
 because isatty behaves unexpectedly on mingw:
 {{{
 #include stdio.h
 #include unistd.h

 int main(void) {
 int i;
 i = fileno(stdin);
 printf(%d\n, i);
 i = fileno(stdout);
 printf(%d\n, i);
 i = isatty(0);
 printf(%d\n, i);
 i = isatty(1);
 printf(%d\n, i);
 return 0;
 }
 }}}
 {{{
 $ ./w
 0
 1
 0
 0

 $ ./w  /dev/null
 0
 1
 64
 0
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2628
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs