Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,399
    • Issues 5,399
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 592
    • Merge requests 592
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #10477
Closed
Open
Issue created Jun 03, 2015 by acfoltzer@trac-acfoltzer

Tab-completing in a directory with Unicode heiroglyph crashes ghci

With a file called 𓅖.hs in C:\Users\acfoltzer, the following in cmd.exe:

C:\Users\acfoltzer>chcp 65001
Active code page: 65001
C:\Users\acfoltzer>ghci
GHCi, version 7.10.1: http://www.haskell.org/ghc/  :? for help
Prelude> :l C:\cygwin\home\acfoltzer\<TAB>
ghc.exe: panic! (the 'impossible' happened)
  (GHC version 7.10.1 for i386-unknown-mingw32):
        Enum.toEnum{Word16}: tag (78166) is outside of bounds (0,65535)

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Here, I'm setting the code page first according to the various bits of folk wisdom on the Internet about getting Unicode to properly display in cmd.exe. I don't get this crash with a Cygwin terminal, but rather see ??.hs.

I came across this because I was getting the same exception in the Cryptol REPL, so I suspect it's not unique to GHCi, but is rather something fishy in base.

Trac metadata
Trac field Value
Version 7.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC hvr
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking