libstdc++/9817: collate::compare doesn't handle nul characters.

paolo@gcc.gnu.org paolo@gcc.gnu.org
Sun Feb 23 13:36:00 GMT 2003


Synopsis: collate::compare doesn't handle nul characters.

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Sun Feb 23 13:36:24 2003
Responsible-Changed-Why:
    Working on it.
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Sun Feb 23 13:36:24 2003
State-Changed-Why:
    Confirmed. The reason is simple: compare is implemented in
    terms of strcoll (config/locale/*/collate_members.cc). The
    same can be said for transform (strxfrm). Instead, a driver
    should continue if necessary past any '\0' (basically 
    when the first hunk compares equal) and invoke repeatedly
    the underlying C functions. Will do...

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9817



More information about the Gcc-bugs mailing list