elm-lang / elm-repl

A REPL for Elm
BSD 3-Clause "New" or "Revised" License
170 stars 34 forks source link

Ungraceful exit from repl (for any charCode > 128) when Char.fromCode charCode #144

Open kkruups opened 7 years ago

kkruups commented 7 years ago

Issue: Keycodes greater than 128 cause elm-repl to exit ungracefully.

Exhibited Behavior Exits from repl with following Error: elm-repl: fd:4: hGetContents: invalid argument (invalid byte sequence)

Expected Behavior: Exception Handled without exiting elm-repl

(additional info: not handling multi-byte byte character codes, on Japanese system start at from char code 129)

Code to recreate Issue in Repl:

    import Char

    Char.fromCode 129  -- (or higher)

Environment:
Win7 SP1 default_locale: ('ja_JP', 'cp932')

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.