rkd77 / elinks

Fork of elinks
Other
335 stars 35 forks source link

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

Open galaxy4public opened 3 years ago

galaxy4public commented 3 years ago

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 commented 3 years ago

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.

rkd77 commented 3 years ago

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.

galaxy4public commented 3 years ago

@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!