elinks icon indicating copy to clipboard operation
elinks copied to clipboard

INTERNAL ERROR at charsets.c:408 - unusable on some sites

Open galaxy4public opened this issue 4 years ago • 3 comments

When I tried to navigate to a site with ELinks 0.14.2 (the latest version as of this writing) by executing:

elinks https://dmitry.khlebnikov.net/

During rendering of the page the following message has been displayed over and over again:

INTERNAL ERROR at charsets.c:408: assertion max_cells>=0 failed!

galaxy4public avatar Sep 01 '21 16:09 galaxy4public

Looking at charsets:408 it seems that ELinks cannot handle a UTF-8 locale. My locale is en_AU.UTF-8. I can get rid of the issue by forcing ELinks to run with the C locale:

LC_ALL=C elinks https://dmitry.khlebnikov.net/

What is interesting is that with the UTF-8 locale not every site fails. For example, https://www.google.com/ works perfectly fine.

galaxy4public avatar Sep 01 '21 16:09 galaxy4public

You can try this ^ change. Real solution would be if know why fs->vpos is less than 0. For this case it works, maybe it has some other side effects.

rkd77 avatar Sep 01 '21 18:09 rkd77

@rkd77, I've rebuilt ELinks with the latest commit (by using the v0.14 branch) and can confirm that the issue went away. Thank you!

galaxy4public avatar Sep 03 '21 11:09 galaxy4public