[GHC] #3309: getArgs should return Unicode on Unix
GHC
trac at galois.com
Wed Jun 17 21:29:59 EDT 2009
#3309: getArgs should return Unicode on Unix
-----------------------------+----------------------------------------------
Reporter: YitzGale | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/base
Version: 6.11 | Severity: normal
Keywords: unicode | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
The raw bytes of args should be decoded according to the current locale.
An additional function should be added:
{{{
getArgsBytes :: IO [Word8]
}}}
to provide access to the raw bytes.
This change needs to be coordinated with #3007 so that it will still
work to read a file name from the command line args and use it
to access a file.
This change should also be made on Windows: #3008
See the discussion at http://www.haskell.org/pipermail/haskell-
cafe/2009-June/062795.html
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3309>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list