www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5443] New: icmp only works correctly for ASCII

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap 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: -------
Jan 10 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5443


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei metalanguage.com
         Resolution|                            |FIXED


--- Comment #1 from Andrei Alexandrescu <andrei metalanguage.com> 2011-01-10
16:51:53 PST ---
Fixed in http://www.dsource.org/projects/phobos/changeset/2298

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2011