#3832: openTempFile does not apply an encoding to the stream
---------------------------------+------------------------------------------
Reporter: ross | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/base
Version: 6.12.1 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
In the following program, the output is written as a raw byte, even in a
UTF locale:
{{{
module Main where
import System.IO
main = do
(_, h) <- openTempFile "." "test.txt"
hPutStrLn h $ "\xa9" -- Copyright symbol
hClose h
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3832>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs