On Tue, Mar 04, 2025 at 11:55:02AM +0000, Stuart Henderson wrote: > On 2025-03-04, Rene Kita <m...@rkta.de> wrote: > > On Sat, Mar 01, 2025 at 07:34:31AM -0500, Jon Fineman wrote: > >> I have been having some trouble with emacs/w3m for a while now. > >> > >> When I browse lobste.rs I get the below error message. Using the > >> command line w3m it works fine. duckduckgo.com and a few others also > >> fail. > > > > AFAIK emacs/w3m basically uses 'w3m -dump' to get the rendered page. One > > difference between interactive usage and using -dump is that w3m won't > > ask when there is e.g. a certificate or cookie problem. Instead it will > > fall back to some default. > > This is the compression-related problem again. For some reason it's > now breaking with the reversion of e933cf831f32f but working if > e933cf831f32f is re-applied.
Thanks to all the pointers I managed to find the commit which appears to be the root cause for this. The issues should be fixed in the latest commit 32193d61 (Fix -dump_source on compressed streams, 2025-03-05). Below is the patch to update the -current port to the latest head. Index: Makefile =================================================================== RCS file: /cvs/ports/www/w3m/Makefile,v retrieving revision 1.109 diff -u -p -u -p -r1.109 Makefile --- Makefile 3 Mar 2025 08:03:55 -0000 1.109 +++ Makefile 6 Mar 2025 07:31:38 -0000 @@ -1,8 +1,7 @@ COMMENT= pager/text-based web browser -DIST_TUPLE= srht rkta w3m 36005bf6ef17b0094e0c67a280edb5046383208d . -PKGNAME= w3m-0.5.3pl20241116 -REVISION= 0 +DIST_TUPLE= srht rkta w3m 32193d61e3938518c0d454022d165b236f26f153 . +PKGNAME= w3m-0.5.3pl20250306 CATEGORIES= www Index: distinfo =================================================================== RCS file: /cvs/ports/www/w3m/distinfo,v retrieving revision 1.30 diff -u -p -u -p -r1.30 distinfo --- distinfo 16 Nov 2024 17:42:09 -0000 1.30 +++ distinfo 6 Mar 2025 07:31:38 -0000 @@ -1,2 +1,2 @@ -SHA256 (rkta-w3m-36005bf6ef17b0094e0c67a280edb5046383208d.tar.gz) = 5p7CwCI3WpYmJ7CXYB2izzQeofgT+4GSoOgovqbPONQ= -SIZE (rkta-w3m-36005bf6ef17b0094e0c67a280edb5046383208d.tar.gz) = 2323241 +SHA256 (rkta-w3m-32193d61e3938518c0d454022d165b236f26f153.tar.gz) = 72mkbTrNIx3hq4FdgjDbLQs7Hys3ulkF5HmuRHhSRRA= +SIZE (rkta-w3m-32193d61e3938518c0d454022d165b236f26f153.tar.gz) = 2324317 Index: patches/patch-file_c =================================================================== RCS file: patches/patch-file_c diff -N patches/patch-file_c --- patches/patch-file_c 3 Mar 2025 08:03:55 -0000 1.8 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -Index: file.c ---- file.c.orig -+++ file.c -@@ -2225,6 +2225,8 @@ loadGeneralFile(char *path, ParsedURL *volatile curren - } - else if (w3m_dump & DUMP_FRAME) - return NULL; -+ else -+ proc = NULL; - - if (t_buf == NULL) - t_buf = newBuffer(INIT_BUFFER_WIDTH);