Ticket #2058 (closed bug: duplicate)

Opened 5 years ago

Last modified 4 years ago

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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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
"hmmm..."

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

Changed 5 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.10 branch

Thanks for the report!

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 4 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.

Changed 4 years ago by igloo

  • milestone changed from 6.10 branch to 6.12.1

Changed 4 years ago by cmcq

  • status changed from new to closed
  • resolution set to duplicate

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

Note: See TracTickets for help on using tickets.