digitalmars.D.bugs - [Issue 1694] New: Zip::ArchiveMember::name format bug
- d-bugmail puremagic.com (26/26) Nov 25 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1694
- d-bugmail puremagic.com (7/7) Nov 25 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1694
- d-bugmail puremagic.com (9/9) Jan 02 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1694
http://d.puremagic.com/issues/show_bug.cgi?id=1694 Summary: Zip::ArchiveMember::name format bug Product: D Version: 2.008 Platform: PC OS/Version: Windows Status: NEW Severity: blocker Priority: P1 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: wqeqweuqy hotmail.com ArchiveMember class in the Zip package is storing file names as formatted arrays of ascii numbers. Kinda a trivial bug, but whatever heh. example: foreach (ArchiveMember am; directory) { .printf("%s", "name: "); foreach (char c; am.name) .printf(" %c ", c); .printf("%s", "\n"); } name: [ 1 1 5 , 1 0 1 , 1 1 6 , 1 1 6 , 1 0 5 , 1 1 0 , 1 0 3 , 1 1 5 , 4 6 , 1 0 5 , 1 1 0 , 1 0 5 ] --
Nov 25 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1694 ------- Comment #1 from wqeqweuqy hotmail.com 2007-11-26 00:04 ------- looks like this cast is whats breaking it: de.name = to!(string) (data[i .. i + namelen]); this fixes it: de.name = cast(invariant(char)[]) data[i .. i + namelen]; --
Nov 25 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1694 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from bugzilla digitalmars.com 2008-01-02 19:49 ------- Fixed dmd 2.009 --
Jan 02 2008