mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[GH-ISSUE #160] [Error] asciinema needs a UTF-8 #738
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#738
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abhisekp on GitHub (May 26, 2016).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/160
I'm getting this error in Ubuntu 16.04 64b after adding the ppa and updating. Previously, I had
Version: 1.0.16and now I'veVersion: 1.2.0-1.Previously, it was all working fine. Why does this error show? What are the benefits this check? https://github.com/asciinema/asciinema/blob/master/main.go#L103
@ku1ik commented on GitHub (May 27, 2016):
We have this requirement in order to force all commands that you run inside asciinema recording session to use UTF-8. By ensuring the captured stdout stream is in UTF-8, the asciinema web player implementation can be much simpler, without need to deal with char encodings and all related complexity.
What's the character encoding you're using? (I don't see encoding specification in your locale output).
@abhisekp commented on GitHub (May 27, 2016):
@sickill I didn't manually change anything. It was like that when I installed my Ubuntu box. I live in India, btw.
en_INprobably stands for Indian English 😕what to do now?
@abhisekp commented on GitHub (May 27, 2016):
@sickill something for you https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/653259
Relevant: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/653259/comments/3
@abhisekp commented on GitHub (May 27, 2016):
@sickill this is my output of
/usr/share/i18n/SUPPORTEDen_INis actuallyUTF-8😺How about a quick patch? 😉
@ku1ik commented on GitHub (May 27, 2016):
Not sure what would be the best way to fix this. But meanwhile you can alias
asciinema="LC_CTYPE=en_IN.UTF-8 asciinema"maybe?@abhisekp commented on GitHub (May 27, 2016):
That is so wrong to do. LOL. 😄
jk
But whatever it takes to run the app 😉
If I had to climb a mountain 🗻 , I would do that. 😄
@abhisekp commented on GitHub (May 27, 2016):
@sickill Thank you. It works but please fix this soon. 👷 🔨 🚧
@ku1ik commented on GitHub (May 27, 2016):
I know it's not the prettiest solution, but as a temporary workaround must do for now ;)
@ku1ik commented on GitHub (Jul 13, 2016):
@abhisekp I just released v1.3.0 which should solve this problem. Can you check it?
sudo pip3 install asciinema.@abhisekp commented on GitHub (Jul 13, 2016):
@sickill yay! it works ...
@ReSearchITEng commented on GitHub (May 15, 2017):
This is still failing, even on asciinema 1.4 .
SOLUTION:
export LC_ALL=${LANG}@ku1ik commented on GitHub (May 16, 2017):
It's enough to only set
LC_CTYPE="*.UTF-8".@ReSearchITEng commented on GitHub (May 16, 2017):
I see.
So the defaults we have in RHEL/Centos are not good enough for asciinema?
On Tue, May 16, 2017 at 11:28 AM, Marcin Kulik notifications@github.com
wrote:
@ku1ik commented on GitHub (May 23, 2017):
Looks like they're not enough indeed :)
@just4t commented on GitHub (Jul 9, 2018):
Same issue having by default:
Worked here by entering:
export LC_ALL=en_US.UTF-8Then, the final output to
localecommand:@just4t commented on GitHub (Jul 10, 2018):
Noticed still fails on some CLOUD server(s) running Ubuntu 16.04 LTS (not detected the issue over Ubuntu 18.04 LTS CLOUD servers) ...
Fixed through SSH with:
update-locale LANG=en_US.UTF-8Or manually by editing the /etc/default/locale file with this content:
LANG="en_US.UTF-8"Hope this helps others!