[GHC] #7342: Bug in System.Posix.Env.putEnv
GHC
cvs-ghc at haskell.org
Thu Oct 18 00:27:05 CEST 2012
#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
More information about the Glasgow-haskell-bugs
mailing list