-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
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
juvix init
Panics if System Language Uses Cyrillic Alphabet
#2430
Comments
We should use https://hackage.haskell.org/package/base-4.18.1.0/docs/GHC-IO-Encoding.html#v:setLocaleEncoding |
Serokell made a Haskell library to try to set a utf8 compatible locale for Haskell applications: https://serokell.io/blog/haskell-with-utf8 I cannot reproduce the error in the bug so I can't check to see if it's fixed. @agureev if possible, could you compile juvix using the set-output-locale-with-utf8 branch and see if it fixes the issue (without changing the system language)? |
EDIT: The problem as reproduced in this particular post was due to an internal mistake in my OS Currently the error is still reproducible on commit
Running
The problem disappears once the language is changed to English. |
EDIT: The problem as reproduced in this particular post was due to an internal mistake in my OS Here's a direct test using
Included the locale errors in case they may come in handy in some way |
Similarly when you switch to
|
@paulcadman I have to apologize about the previous error. It seems that one of the cases stemmed from not having a proper locale generation file installed. Here is a list of all commands done in Juvix with a locale report listing all installed generation files.
|
We couldn't figure this out. We'll reopen if this becomes a problem again. |
juvix init
command panics producing outputjuvix: <stdout>: commitAndReleaseBuffer: invalid argument (cannot encode character '\10024')
if the system language uses Cyrillics instead of English seemingly unable to process the glitter/stars unicode.
Problem got solved by changing system language to English producing the expected output. It is probably worth mentioning this issue somewhere, e.g. after the
doctor
command.The system info is:
The text was updated successfully, but these errors were encountered: