From thompson@tgsoft.com Tue Feb 23 06:48:46 1999
Return-Path: <thompson@tgsoft.com>
Received: from squirrel.tgsoft.com (cx20270-a.pwy1.sdca.home.com [24.0.169.3])
	by hub.freebsd.org (Postfix) with SMTP id 6319D114B0
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 23 Feb 1999 06:48:44 -0800 (PST)
	(envelope-from thompson@tgsoft.com)
Received: (qmail 8755 invoked by uid 128); 23 Feb 1999 14:48:43 -0000
Message-Id: <19990223144843.8754.qmail@squirrel.tgsoft.com>
Date: 23 Feb 1999 14:48:43 -0000
From: thompson@tgsoft.com
Reply-To: thompson@tgsoft.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ctype NIT
X-Send-Pr-Version: 3.2

>Number:         10225
>Category:       bin
>Synopsis:       isxdigit fails POLA, does not match man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 23 06:50:00 PST 1999
>Closed-Date:    Tue Feb 23 07:16:28 PST 1999
>Last-Modified:  Tue Feb 23 07:17:06 PST 1999
>Originator:     mark thompson
>Release:        FreeBSD 2.2.7-RELEASE i386 (also 3.1)
>Organization:
T&G Software
>Environment:

several versions of FreeBSD

>Description:

The man page documents that isxdigit is true for 0-9a-fA-F, and this
is in accord with both what you would expect, and common usage on other
systems.
However, testing and inspection of ctype.c show that it is not true for
the digits 0-9. This leads to incompatibilites with both expectation and
code from other systems.

>How-To-Repeat:

	

>Fix:
	
--- /w/CVS/release/src/lib/libc/locale/ctype.c	Thu May 26 21:56:44 1994
+++ /tmp/ctype.c	Tue Feb 23 06:46:19 1999
@@ -57,8 +57,8 @@
 	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
 	_S|_B,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
 	_P,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
-	_N,	_N,	_N,	_N,	_N,	_N,	_N,	_N,
-	_N,	_N,	_P,	_P,	_P,	_P,	_P,	_P,
+	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,
+	_N|_X,	_N|_X,	_P,	_P,	_P,	_P,	_P,	_P,
 	_P,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U,
 	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
 	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Tue Feb 23 07:16:28 PST 1999 
State-Changed-Why:  
ctype.c removed since unused 
>Unformatted:
