Created attachment 427518 [details]
Badly rendered html
Using w3m in my mutt mailcap to render html, I stumbled upon a most annoying bug in that didn't happen on my Arch install: the attached html doesn't render accentuated characters properly.
So I tried to see what was the difference between the two distributions, and it looks like Arch (and Debian) uses a different, forked upstream that fixed a lot of bugs (including mine): https://github.com/tats/w3m
Seeing that the real upstream is pretty much dead, that some rather serious bugs are fixed in this fork (see https://raw.githubusercontent.com/tats/w3m/master/ChangeLog) and that the compilation process isn't that different, wouldn't an upstream change be beneficial for Gentoo too?
PS: I used 'elinks -dump -force-html -no-numbering -no-references' in mutt to temporarly fix the problem.
It looks like https://github.com/tats/w3m is actually a mirror for https://anonscm.debian.org/cgit/collab-maint/w3m.git/
Actually, I'm collaborating with the Debian maintainer, and already pulling necessary patch from there (e.g. files/w3m-0.5.3-url-schema.patch). Please specify the problem so that I'll find patch and add it to Gentoo tree.
> the attached html doesn't render accentuated characters properly.
And this seems to happen by a configuration knob: "Use ASCII equivalents to display entities (*)YES ( )NO"
You're right, sorry for the false alarm. Still, I don't understand why the defaults are not the same for the fork and why we should works with a lot of patches instead of using a clean fork.
Created attachment 454656 [details]
what do you think if we directly tracking the github repository?
attach ebuild is a prototype of this idea, also could you help to check which patches we have to forward port to the new version? as I haven't looked at them, nor am I familiar with ..
Author: Yixun Lan <firstname.lastname@example.org>
Date: Sat Dec 3 13:47:12 2016 +0800
www-client/w3m: version bump, fix various security issue
1) tracking new repo source from github
2) fix various security issue, see bug 600176
3) drop USE=vanilla, since all patches accepted by upstream
Gentoo-Bug: 576514, 600176
Signed-off-by: Yixun Lan <email@example.com>