dex-lang icon indicating copy to clipboard operation
dex-lang copied to clipboard

Unicode characters in .dx files supported on Mac, not on Linux

Open harryaskham opened this issue 4 years ago • 1 comments

Discovered trying to move a file with the word "Schrödinger" in a comment from MacOS to Debian :)

On MacOS everything works as expected, umlaut appears in Web view

On Linux

Error:
examples/unicode.dx: hGetContents: invalid argument (invalid byte sequence)

Removing the umlaut fixes things on Linux.

harryaskham avatar Jun 17 '21 10:06 harryaskham

Yeah we're very unprincipled when it comes to unicode handling. We should take a pass over the whole compiler and be more careful about it.

apaszke avatar Jun 17 '21 10:06 apaszke