[Issue 11057] New: [REG2.064dev] New std.uni has icmp() partly broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 17 10:09:52 PDT 2013


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

           Summary: [REG2.064dev] New std.uni has icmp() partly broken
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: kekeniro2 at yahoo.co.jp


--- Comment #0 from kekeniro2 at yahoo.co.jp 2013-09-17 10:09:50 PDT ---
The code below fails in the last assertion since 2.064dev introduces new
std.uni.
The implementation of Ystd.uni.icmp() gets complicated.
std.path.filenameCmp(aka. fcmp) doesn't use it and is simple.

CODE:
import std.string; // or std.uni

void main(){
    assert( icmp("A", "B") < 0 ); // OK
    assert( icmp("J", "K") < 0 ); // OK
    assert( icmp("L", "M") < 0 ); // OK

    assert( icmp("K", "L") < 0 ); // NG
}

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