Ticket #5940 (closed bug: duplicate)

Opened 14 months ago

Last modified 14 months ago

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

Changed 14 months ago by pcapriotti

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to duplicate
  • related set to #3309

This is fixed in 7.2. See #3309.

Changed 14 months ago by pcapriotti

  • component changed from Runtime System to libraries/base
Note: See TracTickets for help on using tickets.