This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix localedef collation handling of <U0000> (bug 15948)
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 24 Sep 2013 14:55:29 -0700 (PDT)
- Subject: Re: Fix localedef collation handling of <U0000> (bug 15948)
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1309122206530 dot 28584 at digraph dot polyomino dot org dot uk>
> as can be seen by adding "assert (runp->nwcs > 0);" before that code,
So add that assert.
> This patch causes such a sequence to be treated as length 1 instead.
This seems reasonable on its face. But I don't understand enough about the
context to be sure how this case comes about or what it ought to mean.
It would be much easier to evaluate with an example of how the case occurs.