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

Output interrupt when a "è" it's present in the file #30

Open
eathtespagheti opened this issue Jan 31, 2020 · 3 comments
Open

Output interrupt when a "è" it's present in the file #30

eathtespagheti opened this issue Jan 31, 2020 · 3 comments

Comments

@eathtespagheti
Copy link

eathtespagheti commented Jan 31, 2020

Example:
textfile:

This is a file with a è character

lolcat textfile output:

This is a file with a

Expected output:

This is a file with a è character

UPDATE

Sometimes output it's a little more verbose and says Error reading input file "textfile": Invalid or incomplete multibyte or wide character

Running on Arch Linux
kernel 5.9.9
gnome-terminal

output of hexdump -C textfile

00000000  54 68 69 73 20 69 73 20  61 20 66 69 6c 65 20 77  |This is a file w|
00000010  69 74 68 20 61 20 c3 a8  20 63 68 61 72 61 63 74  |ith a .. charact|
00000020  65 72 0a                                          |er.|
00000023

output of locale

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=it_IT.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
@neinseg
Copy link

neinseg commented Nov 22, 2020

Hey there,

I'm having trouble reproducing your issue.

in case you're still having this issue, please update this issue with information on which platform you're using and which terminal emulator you're using. Please also attach the output of the following two commands: $ hexdump -C textfile where textfile is the textfile causing this issue, as well as $ locale

Thank you for the effort.
-- jaseg

@eathtespagheti
Copy link
Author

eathtespagheti commented Nov 22, 2020

Yeah the issue it's still there, as mentioned on issue #21 running lolcat -lallow to output the file anyway, but sometimes I get a random ERRNO 2 with output Error reading input file "textfile": Success at the end of the normal cat output

@jaseg
Copy link
Owner

jaseg commented Dec 25, 2020

I'm still not sure what's causing your lolcat to choke on that UTF-8 multibyte sequence. I'm looking into that rn. The other issue you're describing, where lolcat outputs random error messages at the end of output is #35 and has been fixed in master.

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

No branches or pull requests

3 participants