Thread overview
[Issue 10081] New: Incorrect char array comparison
May 14, 2013
Denis Shelomovskij
May 14, 2013
Denis Shelomovskij
May 14, 2013
Denis Shelomovskij
May 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10081

           Summary: Incorrect char array comparison
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: ASSIGNED
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: druntime
        AssignedTo: verylonglogin.reg@gmail.com
        ReportedBy: verylonglogin.reg@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-05-14 13:37:32 MSD ---
---
auto a = "hello"c;
assert(a < "я"); // Fails

char[1] arr1 = [0], arr2 = [0xFF];
assert(arr1 < arr2); // Fails
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10081


Denis Shelomovskij <verylonglogin.reg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-05-14 13:42:20 MSD ---
https://github.com/D-Programming-Language/druntime/pull/486

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10081



--- Comment #2 from github-bugzilla@puremagic.com 2013-05-14 03:20:22 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/2052670ce6620af0e29c4061be7484b3ca63cd53 Issue 10081 - Incorrect char array comparison

`char[]` type info is incorrectly inherited from `byte[]` type info instead of `ubyte[]` one so char arrays are compared like arrays of signed bytes.

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=10081

https://github.com/D-Programming-Language/druntime/commit/cbf95d5dd857905fb23f8f131e0fd98d07d02997 Merge pull request #486 from denis-sh/fix-Issue-10081

Issue 10081 - Incorrect char array comparison

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10081


Denis Shelomovskij <verylonglogin.reg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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