From owner-svn-src-projects@freebsd.org Mon Oct 19 14:30:29 2015 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD37FA192C8 for ; Mon, 19 Oct 2015 14:30:29 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ACA3EB9; Mon, 19 Oct 2015 14:30:29 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9JEUSdd016343; Mon, 19 Oct 2015 14:30:28 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9JEUSmk016342; Mon, 19 Oct 2015 14:30:28 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201510191430.t9JEUSmk016342@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Mon, 19 Oct 2015 14:30:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r289586 - projects/collation/usr.bin/localedef X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 14:30:30 -0000 Author: bapt Date: Mon Oct 19 14:30:28 2015 New Revision: 289586 URL: https://svnweb.freebsd.org/changeset/base/289586 Log: With regard to ctype, digits (e.g. 0 to 9) and xdigits (the 0 to 9 portion of hexidecimal numbers) are all considered "numbers". (Note that while all digits are numbers, not all numbers are digits). Enhance localedef to automatically set the "number" characteristic when it encounters a digit or xdigit definition. This fixes malfunctionning isalnum(3) Obtained from: DragonflyBSD Modified: projects/collation/usr.bin/localedef/ctype.c Modified: projects/collation/usr.bin/localedef/ctype.c ============================================================================== --- projects/collation/usr.bin/localedef/ctype.c Mon Oct 19 14:26:40 2015 (r289585) +++ projects/collation/usr.bin/localedef/ctype.c Mon Oct 19 14:30:28 2015 (r289586) @@ -117,7 +117,7 @@ add_ctype_impl(ctype_node_t *ctn) ctn->ctype |= (_ISALPHA | _ISGRAPH | _ISPRINT); break; case T_ISDIGIT: - ctn->ctype |= (_ISDIGIT | _ISGRAPH | _ISPRINT | _ISXDIGIT); + ctn->ctype |= (_ISDIGIT | _ISGRAPH | _ISPRINT | _ISXDIGIT | _E4); break; case T_ISSPACE: ctn->ctype |= _ISSPACE; @@ -135,7 +135,7 @@ add_ctype_impl(ctype_node_t *ctn) ctn->ctype |= (_ISPUNCT | _ISGRAPH | _ISPRINT); break; case T_ISXDIGIT: - ctn->ctype |= (_ISXDIGIT | _ISPRINT); + ctn->ctype |= (_ISXDIGIT | _ISPRINT | _E4); break; case T_ISBLANK: ctn->ctype |= (_ISBLANK | _ISSPACE);