From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24091 invoked by alias); 3 Feb 2013 15:38:05 -0000 Received: (qmail 21998 invoked by uid 48); 3 Feb 2013 15:37:40 -0000 From: "bensberg at justemail dot net" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/11561] Collation characters represented by internal name instead of character sequence Date: Sun, 03 Feb 2013 15:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: regex X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bensberg at justemail dot net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bonzini at gnu dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00000.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=11561 Benno Schulenberg changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bensberg at justemail dot | |net --- Comment #1 from Benno Schulenberg 2013-02-03 15:37:37 UTC --- > POSIX especially mentions [[.ch.]] in the example instead of [[.ch-digraph.]] > so this is a bug in glibc. It shouldn't be hard to fix it in regcomp. The easiest fix would be, in my opnion, to rename all the collation-element names for digraphs from their hyphenated form to the non-hyphenated form. But a few users may have gotten used to using the hyphented forms, working around this bug in glibc. They would be pissed. So for quite a while both forms will have to recognized. Attached patch is an attempt to do this -- when the user specifies [.xx.], it will first try to look up "xx" in the table of collation elements, and when that fails, it will look up "x-x". Is this what you had in mind, Paolo? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.