From fanf@dotat.at  Wed Sep 19 00:30:17 2001
Return-Path: <fanf@dotat.at>
Received: from hand.dotat.at (host217-35-44-190.in-addr.btopenworld.com [217.35.44.190])
	by hub.freebsd.org (Postfix) with ESMTP id 4E9B037B408
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Sep 2001 00:30:13 -0700 (PDT)
Received: from fanf by hand.dotat.at with local (Exim 3.33 #2)
	id 15jbo9-0000n6-00
	for FreeBSD-gnats-submit@freebsd.org; Wed, 19 Sep 2001 07:30:09 +0000
Message-Id: <E15jbo9-0000n6-00@hand.dotat.at>
Date: Wed, 19 Sep 2001 07:30:09 +0000
From: Tony Finch <dot@dotat.at>
Reply-To: Tony Finch <dot@dotat.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject:
X-Send-Pr-Version: 3.113
X-GNATS-Notify: ru

>Number:         30666
>Category:       gnu
>Synopsis:       [PATCH] ident(1) doesn't work on XFree86 source files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    peter
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 19 00:40:01 PDT 2001
>Closed-Date:    Mon Dec 10 12:49:46 PST 2001
>Last-Modified:  Mon Dec 10 12:50:11 PST 2001
>Originator:     Tony Finch
>Release:        FreeBSD 4.4-STABLE-20010916 i386
>Organization:
dotat labs
>Environment:
System: FreeBSD hand.dotat.at 4.4-STABLE-20010916 FreeBSD 4.4-STABLE-20010916 #5: Mon Sep 17 00:22:44 GMT 2001 fanf@hand.dotat.at:/FreeBSD/obj/FreeBSD/releng4/sys/SHARP i386
>Description:
ident(1) only recognizes rcs keywords consisting purely of letters.
The XFree86 project uses rcs tags with digits in them, so ident(1)
doesn't work with them.
>How-To-Repeat:
fanf@hand.dotat.at:/usr/X11R6/include/X11
:; ident X.h
X.h:
     $Xorg: X.h,v 1.3 2000/08/18 04:05:43 coskrey Exp $
fanf@hand.dotat.at:/usr/X11R6/include/X11
:; grep XFree86 X.h
/* $XFree86: xc/include/X.h,v 1.4 2001/01/17 17:53:09 dawes Exp $ */

>Fix:

Index: ident.c
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/rcs/ident/ident.c,v
retrieving revision 1.7
diff -u -u -r1.7 ident.c
--- ident.c	1999/08/27 23:36:42	1.7
+++ ident.c	2001/09/19 07:25:19
@@ -233,7 +233,7 @@
       if (c == EOF  &&  feof(fp) | ferror(fp))
 	 return c;
       switch (ctab[c]) {
-	 case LETTER: case Letter:
+        case LETTER: case Letter: case DIGIT:
 	    *tp++ = c;
 	    if (tp < line+sizeof(line)-4)
 	       break;
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: ru 
Responsible-Changed-When: Wed Sep 19 02:22:29 PDT 2001 
Responsible-Changed-Why:  
I don't believe that RCS is maintained anymore, but I may be err. 
Peter, can we just commit this patch on the HEAD? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30666 
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Mon Dec 10 12:49:46 PST 2001 
State-Changed-Why:  
Committed, revs 1.8 and 1.7.2.1 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30666 
>Unformatted:
