Ticket #3832 (closed merge: fixed)
openTempFile does not apply an encoding to the stream
| Reported by: | ross | Owned by: | igloo |
|---|---|---|---|
| Priority: | high | Milestone: | 6.12.2 |
| Component: | libraries/base | Version: | 6.12.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
