Bug 13529 – std.string.lastIndexOf matches wrong element

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-09-24T21:50:00Z
Last change time
2014-09-26T03:47:24Z
Assigned to
nobody
Creator
rburners

Comments

Comment #0 by rburners — 2014-09-24T21:50:08Z
unittest { ptrdiff_t idx = lastIndexOfH(to!dstring("Hällö Wörldö ö"),to!dstring("ö öd")); assert(idx == -1); // fails } PR is in the works
Comment #1 by rburners — 2014-09-24T21:58:58Z
Comment #2 by github-bugzilla — 2014-09-25T09:29:02Z
Comment #3 by hsteoh — 2014-09-26T03:47:24Z
Verified fixed in git HEAD, Linux/64.