Bug 20398 – Wrong number of totalEntries in std.zip
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-11-16T10:42:00Z
Last change time
2019-11-28T12:50:04Z
Keywords
pull
Assigned to
No Owner
Creator
berni44
Comments
Comment #0 by bugzilla — 2019-11-16T10:42:00Z
import std.string : representation;
import std.zip;
void main()
{
ArchiveMember file1 = new ArchiveMember();
file1.name = "test1.txt";
file1.expandedData("Test data.\n".dup.representation);
ZipArchive zip = new ZipArchive();
zip.addMember(file1);
assert(zip.totalEntries == 1);
}
Comment #1 by dlang-bot — 2019-11-16T11:08:21Z
@berni44 created dlang/phobos pull request #7279 "std.zip: Remove some unnecessary private variables" fixing this issue:
- Fix Issue 20398 - Wrong number of totalEntries in std.zip
https://github.com/dlang/phobos/pull/7279
Comment #2 by dlang-bot — 2019-11-28T12:50:04Z
dlang/phobos pull request #7279 "std.zip: Remove some unnecessary private variables" was merged into master:
- 7fd7a77beb88d8a6a0ebfad3a2d1095badbda196 by Bernhard Seckinger:
Fix Issue 20398 - Wrong number of totalEntries in std.zip
https://github.com/dlang/phobos/pull/7279