Bug 5443 – icmp only works correctly for ASCII

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-01-10T14:21:00Z
Last change time
2011-01-10T16:51:53Z
Assigned to
nobody
Creator
bus_dbugzilla

Attachments

IDFilenameSummaryContent-TypeSize
868icmp_i18n.dTest case that failstext/x-dsrc95

Comments

Comment #0 by bus_dbugzilla — 2011-01-10T14:21:47Z
Created attachment 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.
Comment #1 by andrei — 2011-01-10T16:51:53Z