[Issue 8323] New: std.string.chompPrefix does not handle varying string types properly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 30 00:11:52 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8323
Summary: std.string.chompPrefix does not handle varying string
types properly
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: jmdavisProg at gmx.com
--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-06-30 00:14:27 PDT ---
This fails
assert(equal(chompPrefix("\uFF28el\uFF4co", "\uFF28el\uFF4co"w), ""));
This because chompPrefix is assuming that the two strings that it's given have
the same character type even though it's templated to take two completely
different character types.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list