[Issue 1965] std.string.toStringz checks too stringent
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 22 23:45:34 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1965
------- Comment #5 from braddr at puremagic.com 2008-04-23 01:45 -------
This was fixed, though differently, in the upstream dmd phobos with these
submits:
1.x - http://www.dsource.org/projects/phobos/changeset/655
2.x - http://www.dsource.org/projects/phobos/changeset/561
I think the change I made was worth doing, but only for the 'the string already
contains a trailing \0' case. I don't think stringz needs to bother with
handling arbitrary embedded nulls either.
I'm leaving the issue closed, since it's not typical that David needs a bug to
track each patch made to the upstream dmd/phobos code. Presumably it'll be in
a future dgcc release as it's moved up to current dmd/phobos releases.
--
More information about the D.gnu
mailing list