Bug 8323 – std.string.chompPrefix does not handle differing string types properly
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-30T00:14:00Z
Last change time
2015-06-09T05:15:07Z
Assigned to
nobody
Creator
issues.dlang
Comments
Comment #0 by issues.dlang — 2012-06-30T00:14:27Z
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.