← Back to index
|
Original Bugzilla link
Bug 12428 – Regression (2.066 git-head): toUpper is corrupting input data (modifying immutable strings)
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-21T03:24:00Z
Last change time
2014-04-25T15:32:22Z
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2014-03-21T03:24:40Z
///////////////// test.d //////////////// import std.array; import std.string; void main() { auto s = "abcdefghij".replicate(300); s = s[0..10]; toUpper(s); assert(s == "abcdefghij"); } ///////////////////////////////////////// Introduced in
https://github.com/D-Programming-Language/phobos/pull/1957
Comment #1
by dmitry.olsh — 2014-04-25T15:32:22Z
Fixed in pull:
https://github.com/D-Programming-Language/phobos/pull/2076