#7342: Bug in System.Posix.Env.putEnv
-----------------------------------------+----------------------------------
 Reporter:  SimonHengel                  |          Owner:                
     Type:  bug                          |         Status:  new           
 Priority:  normal                       |      Component:  libraries/unix
  Version:  7.4.2                        |       Keywords:                
       Os:  Linux                        |   Architecture:  x86_64 (amd64)
  Failure:  Incorrect result at runtime  |       Testcase:                
Blockedby:                               |       Blocking:                
  Related:                               |  
-----------------------------------------+----------------------------------

Comment(by SimonHengel):

 Changing {{{putEnv}}} to

 {{{
 putEnv keyvalue = newCString keyvalue >>= throwErrnoIfMinus1_ "putenv" .
 c_putenv
 }}}

 fixes the issue.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7342#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

Reply via email to