Opened 12 years ago

Closed 10 years ago

#2058 closed bug (duplicate)

Ghci tab-completion cannot handle Unicode

Reported by: desegnis Owned by:
Priority: normal Milestone: 6.12.1
Component: GHCi Version: 6.9
Keywords: Cc:
Operating System: Linux Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Ghci on *nix is capable of handling input Unicode identifiers encoded as UTF-8:

Prelude> let ŝaŭmmanĝaĵo = "hmmm..."
Prelude> let identifier_α = ()
Prelude> let test_π = 1
Prelude> let test_ρ = 2
Prelude> ŝaŭmmanĝaĵo

However, there is no working tab completion for those identifiers:

Prelude> ŝa<TAB><TAB><TAB>    -- Nothing happens
Prelude> identifier_�         -- Tab-completed garbage
Prelude> test_<TAB>           -- Unreadable alternatives

Since code input is interpreted as UTF-8, tab-completion output should be converted to UTF-8, too.

Change History (5)

comment:1 Changed 12 years ago by igloo

difficulty: Unknown
Milestone: 6.10 branch

Thanks for the report!

comment:2 Changed 11 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:3 Changed 11 years ago by judah

This will be fixed once we implement #2812 (use haskeline in ghci). The example repo mentioned in that ticket (ghci-haskeline) does not have this issue.

comment:4 Changed 11 years ago by igloo

Milestone: 6.10 branch6.12.1

comment:5 Changed 10 years ago by cmcq

Resolution: duplicate
Status: newclosed

See #2812. Those Unicode examples work for me in 6.10.3.

Note: See TracTickets for help on using tickets.