getArgs should return Unicode on Unix
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 (closed) 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 (closed)
See the discussion at http://www.haskell.org/pipermail/haskell-cafe/2009-June/062795.html
Trac metadata
Trac field | Value |
---|---|
Version | 6.11 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |