elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

elm-make crash on unicode escapes in range \xdc00..\xdfff #186

Closed robx closed 6 years ago

robx commented 6 years ago
$ elm-repl --version
0.18.0

$ elm-repl
> "\xdc00"
elm-make: elm-stuff/build-artifacts/0.18.0/robx/elm-edn/1.0.1/Repl.elmo: commitAndReleaseBuffer: invalid argument (invalid character)
elm-make: thread blocked indefinitely in an MVar operation

This seems to happen for the whole range \xdc00 through \xdfff, though I didn't check them all.

process-bot commented 6 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.

robx commented 6 years ago

This also affects character literals, e.g. '\xdc00'.

alicebob commented 6 years ago

Pretty meta: '\xdead'

robx commented 6 years ago

duplicate of https://github.com/elm-lang/elm-compiler/issues/1623