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
[Error] asciinema needs a UTF-8 #160
Comments
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). |
@sickill I didn't manually change anything. It was like that when I installed my Ubuntu box. I live in India, btw.
what to do now? |
@sickill this is my output of
How about a quick patch? 😉 |
Not sure what would be the best way to fix this. But meanwhile you can alias |
That is so wrong to do. LOL. 😄 But whatever it takes to run the app 😉 |
@sickill Thank you. It works but please fix this soon. 👷 🔨 🚧 |
I know it's not the prettiest solution, but as a temporary workaround must do for now ;) |
@abhisekp I just released v1.3.0 which should solve this problem. Can you check it? |
@sickill yay! it works ... |
This is still failing, even on asciinema 1.4 . $asciinema
asciinema needs a UTF-8 native locale to run. Check the output of `locale` command.```
$locale
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C SOLUTION: |
It's enough to only set |
I see.
So the defaults we have in RHEL/Centos are not good enough for asciinema?
```
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
```
…On Tue, May 16, 2017 at 11:28 AM, Marcin Kulik ***@***.***> wrote:
It's enough to only set LC_CTYPE=*.UTF-8.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#160 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG43M6dRcLL9t5y-22nTwG0rcEtJcdfuks5r6V5IgaJpZM4In9vV>
.
|
Looks like they're not enough indeed :) |
Same issue having by default:
Worked here by entering:
Then, the final output to
|
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: Or manually by editing the /etc/default/locale file with this content: Hope this helps others! |
I'm getting this error in Ubuntu 16.04 64b after adding the ppa and updating. Previously, I had
Version: 1.0.16
and 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
The text was updated successfully, but these errors were encountered: