Ticket #3309 (closed bug: fixed)
getArgs should return Unicode on Unix
| Reported by: | YitzGale | Owned by: | batterseapower |
|---|---|---|---|
| Priority: | high | Milestone: | 7.2.1 |
| Component: | libraries/base | Version: | 6.11 |
| Keywords: | unicode | Cc: | slyfox@…, marcot@… |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
