From owner-freebsd-bugs@freebsd.org Sun Jan 5 19:10:20 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D014C1E2C7F for ; Sun, 5 Jan 2020 19:10:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47rSrr5Cjmz4d6M for ; Sun, 5 Jan 2020 19:10:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B2EFB1E2C7D; Sun, 5 Jan 2020 19:10:20 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B2BC51E2C7C for ; Sun, 5 Jan 2020 19:10:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47rSrr4NrVz4d6L for ; Sun, 5 Jan 2020 19:10:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9184520C9 for ; Sun, 5 Jan 2020 19:10:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 005JAKgw046912 for ; Sun, 5 Jan 2020 19:10:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 005JAKx1046911 for bugs@FreeBSD.org; Sun, 5 Jan 2020 19:10:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 156920] isspecial(3) is not helpful Date: Sun, 05 Jan 2020 19:10:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2020 19:10:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D156920 --- Comment #6 from Conrad Meyer --- #define isspecial(c) __sbistype((c), _CTYPE_T) Whatever that means. @Ed, there are a host of other BSD-specific ctype.h extensions that could m= aybe be better defined, or removed: 127-#if __BSD_VISIBLE 128-#define digittoint(c) __sbmaskrune((c), 0xFF) 129-#define ishexnumber(c) __sbistype((c), _CTYPE_X) 130-#define isideogram(c) __sbistype((c), _CTYPE_I) 131-#define isnumber(c) __sbistype((c), _CTYPE_D|_CTYPE_N) 132-#define isphonogram(c) __sbistype((c), _CTYPE_Q) 133-#define isrune(c) __sbistype((c), 0xFFFFFF00L) (And keep in mind the corresponding wchar versions, 116-#if __BSD_VISIBLE 117-#define iswascii(wc) (((wc) & ~0x7F) =3D=3D 0) 118-#define iswhexnumber(wc) __istype((wc), _CTYPE_X) /* alias of iswxdigit */ 119-#define iswideogram(wc) __istype((wc), _CTYPE_I) 120-#define iswnumber(wc) __istype((wc), _CTYPE_D|_CTYPE_N) 121-#define iswphonogram(wc) __istype((wc), _CTYPE_Q) 122-#define iswrune(wc) __istype((wc), 0xFFFFFF00L) 123:#define iswspecial(wc) __istype((wc), _CTYPE_T) ) There is a hardcoded ASCII table in lib/libc/locale/table.c that includes several characters marked as whitespace (_CTYPE_S) but zero references to _CTYPE_T. --=20 You are receiving this mail because: You are the assignee for the bug.=