Re: [GHC] #5761: Getting stdout and stderr as a single handle from createProcess does not work on Windows

2012-06-08 Thread GHC
#5761: Getting stdout and stderr as a single handle from createProcess does not
work on Windows
--+-
Reporter:  SimonHengel|   Owner: 
Type:  bug|  Status:  new
Priority:  normal |   Milestone:  7.6.1  
   Component:  libraries/process  | Version: 
Keywords: |  Os:  Windows
Architecture:  x86| Failure:  Incorrect result at runtime
  Difficulty:  Unknown|Testcase: 
   Blockedby: |Blocking: 
 Related: |  
--+-
Changes (by kazu-yamamoto):

 * cc: kazu@… (added)


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5761: Getting stdout and stderr as a single handle from createProcess does not work on Windows

2012-01-15 Thread GHC
#5761: Getting stdout and stderr as a single handle from createProcess does not
work on Windows
--+-
Reporter:  SimonHengel|   Owner: 
Type:  bug|  Status:  new
Priority:  normal |   Milestone:  7.6.1  
   Component:  libraries/process  | Version: 
Keywords: |  Os:  Windows
Architecture:  x86| Failure:  Incorrect result at runtime
  Difficulty:  Unknown|Testcase: 
   Blockedby: |Blocking: 
 Related: |  
--+-
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 7.6.1


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5761: Getting stdout and stderr as a single handle from createProcess does not work on Windows

2012-01-10 Thread GHC
#5761: Getting stdout and stderr as a single handle from createProcess does not
work on Windows
-+--
 Reporter:  SimonHengel  |  Owner:   
 Type:  bug  | Status:  new  
 Priority:  normal   |  Component:  libraries/process
  Version:   |   Keywords:   
   Os:  Windows  |   Architecture:  x86  
  Failure:  Incorrect result at runtime  |   Testcase:   
Blockedby:   |   Blocking:   
  Related:   |  
-+--

Comment(by SimonHengel):

 The error on Windows is:

 {{{
 fd:4: hGetLine: end of file
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #5761: Getting stdout and stderr as a single handle from createProcess does not work on Windows

2012-01-10 Thread GHC
#5761: Getting stdout and stderr as a single handle from createProcess does not
work on Windows
-+--
 Reporter:  SimonHengel  |  Owner:   
 Type:  bug  | Status:  new  
 Priority:  normal   |  Component:  libraries/process
  Version:   |   Keywords:   
   Os:  Windows  |   Architecture:  x86  
  Failure:  Incorrect result at runtime  |   Testcase:   
Blockedby:   |   Blocking:   
  Related:   |  
-+--
Changes (by SimonHengel):

 * cc: sol@… (added)
  * version:  7.2.1 =>


Comment:

 Tested with process-1.0.1.5.

-- 
Ticket URL: 
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] #5761: Getting stdout and stderr as a single handle from createProcess does not work on Windows

2012-01-10 Thread GHC
#5761: Getting stdout and stderr as a single handle from createProcess does not
work on Windows
-+--
 Reporter:  SimonHengel  |  Owner:   
 Type:  bug  | Status:  new  
 Priority:  normal   |  Component:  libraries/process
  Version:  7.2.1|   Keywords:   
   Os:  Windows  |   Architecture:  x86  
  Failure:  Incorrect result at runtime  |   Testcase:   
Blockedby:   |   Blocking:   
  Related:   |  
-+--
 The following test case works on Linux (an as far as I know on Mac OS X
 too), but not on Windows.
 {{{
 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
 module Spec (main) where
 import   Test.HUnit
 import   System.Process
 import   System.IO

 subprocess = concat $
   [ "module Main where\n"
   , "import System.IO\n"
   , "main = do\n"
   , "  hPutStr stderr \"foo\"\n"
   , "  hFlush stderr\n"
   , "  hPutStrLn stdout \"bar\"\n"
   , "  hFlush stdout\n"
   ]

 main = runTestTT $ TestCase $ do
   (Just hin, Just hout, Nothing, _) <-
 createProcess $ (proc "runhaskell" []) {
 std_in = CreatePipe
   , std_out = CreatePipe
   , std_err = UseHandle stdout
 }
   hPutStrLn hin subprocess
   hClose hin
   line <- hGetLine hout
   line @?= "foobar"
 }}}

 Do we consider this a bug?  If not, what would be the suggested way to do
 that?

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs