Bug 192 – std.zip produces invalid archives on BigEndian targets

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2006-06-11T14:12:00Z
Last change time
2014-02-15T13:29:10Z
Keywords
patch
Assigned to
bugzilla
Creator
dvdfrdmn

Comments

Comment #0 by dvdfrdmn — 2006-06-11T14:12:17Z
There is a bug in ZipAarchive.putUshort, but it is only triggered on BigEndian targets. Fix: } else { - data[0] = cast(ubyte)us; - data[1] = cast(ubyte)(us >> 8); + data[i] = cast(ubyte)us; + data[i + 1] = cast(ubyte)(us >> 8); } }
Comment #1 by bugzilla — 2006-06-20T02:23:22Z
Fixed DMD 0.161