🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40593

Re: SLRN 0.9.5.2 Bugs

#40593
From: John E. Davis
Date: Mon, 04 May 1998 00:00
32 lines
1730 bytes
On 4 May 1998 02:38:25 GMT, Bill McCarthy <Bill.McCarthy@pobox.com>
wrote:
>The new print command does send something to the printer (WinNT).  It prints
>Path: line up to the middle of the first line of the page.  On the next line
>it prints the From: line starting in the middle of the second line on the
>page.  That's all it prints!

I am guessing that a carriage return is needed.  Since I have my
printer configured for a Unix system, a \r was not required.  If the
following patch fixes the problem, then I will release 0.9.5.3 with
this bug-fix:

--- art.c~	Sun May  3 15:39:37 1998
+++ art.c	Mon May  4 01:00:56 1998
@@ -3809,7 +3809,7 @@
    while (l != NULL)
      {
 	if ((-1 == slrn_write_to_printer (p, l->buf, strlen (l->buf)))
-	    || (-1 == slrn_write_to_printer (p, "\n", 1)))
+	    || (-1 == slrn_write_to_printer (p, "\r\n", 2)))
 	  {
 	     slrn_close_printer (p);
 	     return -1;


-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

Technical Details
Message-ID: <slrn6kqja2.ktq.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <6ij9n1$l1f$1@pinta.pagesz.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6kqja2.ktq.davis@aluche.mit.edu>
Subject: Re: SLRN 0.9.5.2 Bugs
Date: Mon, 04 May 1998 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <6ij9n1$l1f$1@pinta.pagesz.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 350013789
Organization: Center for Space Research
Reply-To: davis@space.mit.edu
Newsgroups: news.software.readers