Bug 10081 – Incorrect char array comparison

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-14T02:37:00Z
Last change time
2013-05-14T04:17:53Z
Keywords
pull, wrong-code
Assigned to
verylonglogin.reg
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2013-05-14T02:37:32Z
--- auto a = "hello"c; assert(a < "я"); // Fails char[1] arr1 = [0], arr2 = [0xFF]; assert(arr1 < arr2); // Fails ---
Comment #1 by verylonglogin.reg — 2013-05-14T02:42:20Z
Comment #2 by github-bugzilla — 2013-05-14T03:20:22Z
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