From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7FFC53858298; Wed, 13 Dec 2023 10:15:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FFC53858298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702462518; bh=hvHNGuUfubjeEmIluSX+cvvITR/fag5QRi1SAEWeVaI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=maujMpr5TcPyHqv0eVZ+Vo9xgRoZYDe9GelRvR6O5zvkfq8hOicQA0Srp8zcOvBq1 IhOj1q8lI1Ba2Mnh5FSOQCItYgsraCLM254kx3RHqwKWlSLyluWw3D9UV6yInh3B2Y sGHW2ZGAsswBp4O1kCEgVxnqFB9jSOiSCwe62DqU= From: "vincent-srcware at vinc17 dot net" To: glibc-bugs@sourceware.org Subject: [Bug localedata/31149] combining characters (accents) misclassified as punct rather than alpha Date: Wed, 13 Dec 2023 10:15:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-srcware at vinc17 dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- 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: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31149 --- Comment #2 from Vincent Lef=C3=A8vre --- (In reply to Florian Weimer from comment #1) > Isn't the larger issue here that it's reasonable to expect that [[:alpha:= ]] > matches a single letter as perceived by the user: an entire grapheme clus= ter > comprising the base character(s), its associated combining characters and > other marks. [...] I don't think so. The functions iswctype(), iswalpha(), etc. take a single code-point (type wint_t), and the regex(7) man page says: Within a bracket expression, the name of a character class enclosed in "[:" and ":]" stands for the list of all characters belonging to that class. Standard character class names are: alnum digit punct alpha graph space blank lower upper cntrl print xdigit These stand for the character classes defined in wctype(3). [...] so that it is expected that [[:alpha:]] matches a single character, like the above functions. --=20 You are receiving this mail because: You are on the CC list for the bug.=