Ticket #5940 (closed bug: duplicate)
Unicode characters in the command line get messed up
| Reported by: | volker-wysk | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | libraries/base | Version: | 7.0.4 |
| Keywords: | Cc: | ||
| Operating System: | Linux | Architecture: | Unknown/Multiple |
| Type of failure: | Incorrect result at runtime | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: | #3309 |
Description
The command line isn't properly decoded to Unicode. The following program demonstrates the bug:
import System main = do
[a] <- getArgs putStrLn (show a)
When called like this:
./bug ä
The program will output this:
"\195\164"
Change History
Note: See
TracTickets for help on using
tickets.
