We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I use some characters in a string, including 'é' and '…', I get an error even if GHC would compile the file and produce a working executable:
'é'
'…'
$ echo '"héllo"' | brittany <stdin>: hGetContents: invalid argument (invalid byte sequence)
The text was updated successfully, but these errors were encountered:
This may be a problem with your system locale. It works on my machine:
$ brittany --version brittany version 0.13.1.2 Copyright (C) 2016-2019 Lennart Spitzner Copyright (C) 2019 PRODA LTD There is NO WARRANTY, to the extent permitted by law. $ echo '"héllo"' | brittany "héllo" $ echo '"héllo"' | env LANG=C brittany <stdin>: hGetContents: invalid argument (invalid byte sequence)
Sorry, something went wrong.
Note sure it's a configuration issue:
pierre@viper:~$ sudo locale-gen Generating locales (this might take a while)... en_GB.UTF-8... done fr_FR.UTF-8... done Generation complete. pierre@viper:~$ locale LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_MONETARY="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-8" LC_PAPER="fr_FR.UTF-8" LC_NAME="fr_FR.UTF-8" LC_ADDRESS="fr_FR.UTF-8" LC_TELEPHONE="fr_FR.UTF-8" LC_MEASUREMENT="fr_FR.UTF-8" LC_IDENTIFICATION="fr_FR.UTF-8" LC_ALL= pierre@viper:~$ echo '"héllo"' | brittany <stdin>: hGetContents: invalid argument (invalid byte sequence) pierre@viper:~$ echo '"héllo"' | env LANG=C.UTF-8 brittany "héllo"
No branches or pull requests
If I use some characters in a string, including
'é'
and'…'
, I get an error even if GHC would compile the file and produce a working executable:The text was updated successfully, but these errors were encountered: