]> granicus.if.org Git - neomutt/commitdiff
use w3m as default for generating UTF8 manual.txt (#491)
authorsassmann <sassmann@users.noreply.github.com>
Mon, 17 Apr 2017 12:15:56 +0000 (14:15 +0200)
committerRichard Russon <rich@flatcap.org>
Mon, 17 Apr 2017 12:15:56 +0000 (13:15 +0100)
The input for manual.txt is manual.html which is UTF8 encoded. Now
forcing manual.txt to be ascii leads to all sorts of "?" in the ascii
file, which is not nice. If we have UTF8 input we should also use UTF8
for the output.
Moved w3m to be the default to generate UTF8 manual.txt. If you prefer
manual.txt to be ascii the fallbacks lynx or elinks will still produce
plain ascii.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
doc/Makefile.am

index 98b59e4b0f31b290c40793e4fbb1c3efe1608175..1e4aaed371f020fa58f819a458c920aa9f56a114 100644 (file)
@@ -127,8 +127,8 @@ uninstall-local:
 
 check:
 manual.txt: manual.html
-       -LC_ALL=C lynx -dump -nolist -with_backspaces -display_charset=us-ascii manual.html > $@ || \
-       LC_ALL=C w3m -dump manual.html > $@ || \
+       -LC_ALL=C w3m -dump -O UTF8 manual.html > $@ || \
+       LC_ALL=C lynx -dump -nolist -with_backspaces -display_charset=us-ascii manual.html > $@ || \
        LC_ALL=C elinks -dump -no-numbering -no-references manual.html | sed -e 's,\\001, ,g' > $@
 
 Muttrc: stamp-doc-rc