🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Kurt Swanson Sun, 14 Jan 1996 00:00
Patch for a couple of bugs that have annoyed me for years...
#7526
Author: Kurt Swanson
Date: Sun, 14 Jan 1996 00:00
244 lines
7367 bytes
This is a multi-part message in MIME format.

--------------850718B7D06
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Below are a couple of bugs I finally got around to hacking.  The first is a patch to
folder.c which fixes a bug when doing autokill/select in a split digest, i.e. you're
reading an article which is a full digest, you type "G%" to open and split the digest, and
then "+" to do autokill/select.  On some systems a pointer variable would have been
uninitialized and thus incorrect causing either a bus error or a segmentation fault.

The second is a patch to pack_name.c which allows 8bit (iso-8859) characters to appear in
the name field in menus.  Previously these characters were stripped completely, i.e.
"Sm�rg�sbord" -> "Smrgsbord".  This didn't crash nn, but was annoying as nn is otherwise
8-bit clean.  If anyone knows of other non 8-bit remnants in nn, I'd hladly hunt 'em down
for y'all.  WARNING, the patch contains 8bit characters.  They are only in C comments so
there is no risk in installing this patch, but if you can't read this as 8-bit, the
characters in the comments (showing the value of the character represented in the table)
won't be right.

-- 
Kurt Swanson, Department of Computer Science, Lund University.
Kurt.Swanson@dna.lth.se (http://www.dna.lth.se/home/kurt/)

--------------850718B7D06
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="folder.c.diffs"

*** ../nn.old/folder.c	Mon Sep 13 19:42:13 1993
--- folder.c	Fri Jan 12 19:17:33 1996
***************
*** 336,341 ****
--- 336,342 ----
      fake_group.group_flag = G_FOLDER | G_FAKED;
      fake_group.master_flag = 0;
      fake_group.save_file = NULL;
+     fake_group.kill_list = NULL;
      current_group = NULL;
      init_group(&fake_group);
  

--------------850718B7D06
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="pack_name.c.diffs"

*** ../nn.old/pack_name.c	Tue Aug 31 23:06:17 1993
--- pack_name.c	Fri Jan 12 18:22:54 1996
***************
*** 28,34 ****
  
  #define	IS_OK(c)	(Class[c] & CL_OK)
  #define IS_SPACE(c)	(Class[c] & CL_SPACE)
! #define IGNORE(c)	(c & 0x80 || Class[c] & CL_IGNORE)
  #define BEGIN_RANGE(c)	(Class[c] & CL_RANGE(0))
  #define END_RANGE(c)	(Class[c] & 0xff)
  #define IS_HYPHEN(c)	(Class[c] & CL_HYPHEN)
--- 28,34 ----
  
  #define	IS_OK(c)	(Class[c] & CL_OK)
  #define IS_SPACE(c)	(Class[c] & CL_SPACE)
! #define IGNORE(c)	(Class[c] & CL_IGNORE)
  #define BEGIN_RANGE(c)	(Class[c] & CL_RANGE(0))
  #define END_RANGE(c)	(Class[c] & 0xff)
  #define IS_HYPHEN(c)	(Class[c] & CL_HYPHEN)
***************
*** 35,41 ****
  #define IS_STOP(c)	(Class[c] & CL_STOP)
  #define	IS_SEPARATOR(c)	(Class[c] & (0 CL_SEP 0))
  
! static short Class[128] = {
  	/* NUL */		CL_STOP ,
  	/* SOH */		CL_IGNORE ,
  	/* STX */		CL_IGNORE ,
--- 35,41 ----
  #define IS_STOP(c)	(Class[c] & CL_STOP)
  #define	IS_SEPARATOR(c)	(Class[c] & (0 CL_SEP 0))
  
! static short Class[256] = {
  	/* NUL */		CL_STOP ,
  	/* SOH */		CL_IGNORE ,
  	/* STX */		CL_IGNORE ,
***************
*** 164,170 ****
  	/*   |   */		CL_OK ,
  	/*   }   */		CL_OK ,
  	/*   ~   */		CL_HYPHEN ,
! 	/*  DEL  */		CL_IGNORE
  } ;
  
  
--- 164,308 ----
  	/*   |   */		CL_OK ,
  	/*   }   */		CL_OK ,
  	/*   ~   */		CL_HYPHEN ,
! 	/*  DEL  */		CL_IGNORE ,
! 
! /* 8859-1 8-bit characters - all printable characters are OK */
! 
! 	/* ? */      	CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 	/* ? */		CL_IGNORE ,
! 
! 	/* 8-bit space */ CL_SPACE ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK ,
! 	/* � */		CL_OK
  } ;
  
  

--------------850718B7D06--


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads