[Issue 5443] New: icmp only works correctly for ASCII

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 10 14:23:34 PST 2011


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

           Summary: icmp only works correctly for ASCII
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: cbkbbejeap at mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2011-01-10 14:21:47 PST ---
Created an attachment (id=868)
Test case that fails

import std.string;
void main()
{
    assert(icmp("Ü", "ü") == 0, "Über failure");
}

Unless my German is even worse than I think it is, the assert should pass, but
it currently fails.

As of the latest Phobos truck (r2232), icmp only checks for the ASCII 'A'
though 'Z'.

A source file for the above test case is attached just in case bugzilla botches
the inline source above.

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