Skip to content
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

Some characters break the output of lolcat (stops before that certain char) #21

Closed
Maxr1998 opened this issue Mar 9, 2019 · 7 comments · Fixed by #22
Closed

Some characters break the output of lolcat (stops before that certain char) #21

Maxr1998 opened this issue Mar 9, 2019 · 7 comments · Fixed by #22

Comments

@Maxr1998
Copy link

Maxr1998 commented Mar 9, 2019

E.g. echo "abcßdef" | lolcat only prints abc. Same for ä, ö, ü, …, €, §, emojis, etc.

@jaseg
Copy link
Owner

jaseg commented Mar 18, 2019

I can't reproduce this, but this sounds like a locale issue. lolcat-c is forcing UTF-8 locale by default because too many people have their locale incorrectly set to ASCII-only. Maybe try $ lolcat -l instead and if that didn't work tell me what $ locale outputs on your system.

@Maxr1998
Copy link
Author

lolcat -l works fine, just tested it. Here's the output of my locale:

LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

@mtvrsh
Copy link

mtvrsh commented Mar 20, 2019

I made small change which fixed this issue (in my case at least). It doesn't work when LANG is not set though.

@Maxr1998
Copy link
Author

Yep, that fixes it for me as well.

@mtvrsh
Copy link

mtvrsh commented Mar 21, 2019

I think this happens when one doesn't have C.UTF-8 locale enabled.
@Maxr1998 Do you have C.UTF-8 enabled in your system?

@Maxr1998
Copy link
Author

Maxr1998 commented Mar 21, 2019

Nope, and it seems that according to commercialhaskell/stack#856 that locale isn't support on Arch.

@mtvrsh
Copy link

mtvrsh commented Mar 21, 2019

Ok then, I will open PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants