Article View: news.software.nn
Article #7526Patch for a couple of bugs that have annoyed me for years...
From: Kurt Swanson
Date: Sun, 14 Jan 1996 00:00
Date: Sun, 14 Jan 1996 00:00
244 lines
7367 bytes
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--
Technical Details
Message-ID:
<30F9110D.6A57@dna.lth.se>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <30F9110D.6A57@dna.lth.se> Subject: Patch for a couple of bugs that have annoyed me for years... Date: Sun, 14 Jan 1996 00:00:00 +0000 From: Kurt Swanson <kurt@dna.lth.se> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 135171056 Cc: nn-bugs@dkuug.dk Content-type: multipart/mixed; boundary="------------850718B7D06" Organization: Comp Sci, Lund University, Sweden Mime-version: 1.0 Newsgroups: news.software.nn X-mailer: Mozilla 2.0b5 (X11; I; SunOS 5.4 sun4m)