From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wopr.sciops.net ([216.126.196.60]) by ewsd; Tue Nov 17 07:22:11 -0500 2020 Received: (qmail 39976 invoked from network); 17 Nov 2020 04:21:56 -0800 Received: from 100.43.142.88.rev.sfr.net (HELO aib.nope) (qwx@88.142.43.100) by wopr.sciops.net with SMTP; 17 Nov 2020 04:21:56 -0800 Message-ID: From: qwx Date: Tue, 17 Nov 2020 13:21:53 +0100 To: 9front@9front.org Subject: Re: [9front] page epub support In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: JSON over SOAP rails standard optimizer > Quoth umbraticus@prosimetrum.com: > > With the flush, I only get the first (blank) page. I think I > > understand why the flush is there (to get each item as a separate read > > in the while(read){addpage} that follows), so I don't really > > understand why removing it makes things work... > > This fix looks wrong. > > It seems like we have a bug in our awk input buffering with > fflush: [...] This is an old bug introduced way back when we got native awk thanks to spew. It got discussed on irc, raised some technical difficulties, then fell off the radar... I kludged page just as umbraticus has back then because I had to work on something else, and completely forgot to ask about it. I can see one discussion about it on irc from 2016-08-18, but not much to go on. Sorry m( qwx