Summary: | Collation characters represented by internal name instead of character sequence | ||
---|---|---|---|
Product: | glibc | Reporter: | Paolo Bonzini <bonzini> |
Component: | regex | Assignee: | Paolo Bonzini <bonzini> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bensberg, glibc-bugs-regex, glibc-bugs, toolchain |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | 2.18 | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | seek also the hyphenated form of a collation-element name |
Description
Paolo Bonzini
2010-04-30 07:36:27 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?
Created attachment 6843 [details]
seek also the hyphenated form of a collation-element name
(Untested patch. I'm just majorly annoyed that collation elements
don't work as one would expect from the documenmtation.)
Fixed in 2.18. *** Bug 260998 has been marked as a duplicate of this bug. *** Seen from the domain http://volichat.com Page where seen: http://volichat.com/adult-chat-rooms Marked for reference. Resolved as fixed @bugzilla. |