[Issue 11347] New: std.string.split is not unicode-correct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 24 14:24:52 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11347

           Summary: std.string.split is not unicode-correct
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: pull
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-10-24 14:24:51 PDT ---
Test-case:

-----
import std.string;

void main()
{
    // Contains U+2003 (EM SPACE)
    // fails, returns "foo bar"
    assert("foo bar".split == ["foo", "bar"]);
}
-----

https://github.com/D-Programming-Language/phobos/pull/1477

-- 
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