.
D 2010-10-16T21:13:32
J comment Reported\sby\sJDC:\r\n\s\s\s\shttp://groups.google.com/group/starkit/browse_frm/thread/5827418f4a2b80e7\r\n\r\nPNG\sfiles\sread\sfrom\san\smk4vfs\scan\sfail\sto\sbe\sread.\s\sLikely\san\sissue\sin\svfs::zstreamed\sin\stclvfs.\r\n\r\nIt\shappens\son\snon-KitCreator\sTclkits\stoo.\r\n\r\n<hr\s/><i>rkeene\sadded\son\s2010-10-13\s15:29:31:</i><br\s/>\r\n<ol>\r\n\s\s<li>\r\n\s\s\s\sCreate\smk4vfs\r\n\s\s\s\s<ol>\r\n\s\s\s\s\s\s<li><tt>$\smkdir\sx.vfs</tt></li>\r\n\s\s\s\s\s\s<li><tt>$\scp\scross.png\sx.vfs/</tt></li>\r\n\s\s\s\s\s\s<li><tt>$\s./tclkit-8.5.9-linux-i686\ssdx.kit\swrap\sx</tt></li>\r\n\s\s\s\s\s\s<li><tt>1\supdates\sapplied</tt></li>\r\n\s\s\s\s</ol>\r\n\s\s</li>\r\n\s\s<li>\r\n\s\s\s\sTest\sreading\s"cross.png"\sfrom\sthe\smk4vfs\r\n\s\s\s\s<ol>\r\n\s\s\s\s\s\s<li><tt>%\svfs::mk4::Mount\sx\sx</li></tt>\r\n\s\s\s\s\s\s<li><tt>mk4vfs1</li></tt>\r\n\s\s\s\s\s\s<li><tt>%\scd\sx</li></tt>\r\n\s\s\s\s\s\s<li><tt>%\sglob\s*</li></tt>\r\n\s\s\s\s\s\s<li><tt>cross.png</li></tt>\r\n\s\s\s\s\s\s<li><tt>%\sset\sfd\s<nowiki>[open\scross.png]</nowiki></li></tt>\r\n\s\s\s\s\s\s<li><tt>mk7</li></tt>\r\n\s\s\s\s\s\s<li><tt>%\sfconfigure\s$fd\s-translation\sbinary</li></tt>\r\n\s\s\s\s\s\s<li><tt>%\sset\sdata\s<nowiki>[read\s$fd]</nowiki>;\sputs\s<nowiki>[string\slength\s$data]</nowiki></li></tt>\r\n\s\s\s\s\s\s<li><tt>655</li></tt>\r\n\s\s\s\s\s\s<li><tt>%\sbinary\sscan\s$data\sH*\sdata_hex</li></tt>\r\n\s\s\s\s\s\s<li><tt>1</li></tt>\r\n\s\s\s\s\s\s<li><tt>%\sputs\s$data_hex</li></tt>\r\n\s\s\s\s\s\s<li><tt>89504e470d0a1a0a0000000d49484452</li></tt>\r\n\s\s\s\s\s\s<li><tt>000000100000001008060000001ff3ff</li></tt>\r\n\s\s\s\s\s\s<li><tt>610000000467414d410000afc837058a</li></tt>\r\n\s\s\s\s\s\s<li><tt>e90000001974455874536f6674776172</li></tt>\r\n\s\s\s\s\s\s<li><tt>650041646f626520496d616765526561</li></tt>\r\n\s\s\s\s\s\s<li><tt>647971c9653c000002214944415438cb</li></tt>\r\n\s\s\s\s\s\s<li><tt>9593eb4e135114858989c989cfa05689</li></tt>\r\n\s\s\s\s\s\s<li><tt>86c89180c41b425b0628ad0d0826d0fb</li></tt>\r\n\s\s\s\s\s\s<li><tt>855ea480b4a5eda44da136ea0f4d7c12</li></tt>\r\n\s\s\s\s\s\s<li><tt>9f0b44c5deb0d299763ad3e5ae984a2d</li></tt>\r\n\s\s\s\s\s\s<li><tt>25e1c74ece64cefaf6acb5f70c0018b8</li></tt>\r\n\s\s\s\s\s\s<li><tt>4cd5d742d7ce3e775f10333a2ade57ec</li></tt>\r\n\s\s\s\s\s\s<li><tt>0f72d9ed8dd76c4e432fa02dceeca295</li></tt>\r\n\s\s\s\s\s\s<li><tt>ce428b277b20755f80d703613436b6f0</li></tt>\r\n\s\s\s\s\s\s<li><tt>ebe5cae7eae2d2bd7f80bf62e4dfa145</li></tt>\r\n\s\s\s\s\s\s<li><tt>a525443437b73b10d9bbc6a93b9ad138</li></tt>\r\n\s\s\s\s\s\s<li><tt>90cba37d3e365be3e519d39553402acd</li></tt>\r\n\s\s\s\s\s\s<li><tt>5a09516bedbe013e7e8296cdb5016804</li></tt>\r\n\s\s\s\s\s\s<li><tt>425cf6f8397587b21d03e8bdec0fe078</li></tt>\r\n\s\s\s\s\s\s<li><tt>feb95a16e6ae7659d06209a6be8ea99a</li></tt>\r\n\s\s\s\s\s\s<li><tt>9801de7f809a4aa31e0c83ba43d98a02</li></tt>\r\n\s\s\s\s\s\s<li><tt>d9bd3fe78ac942e259766e88cdc8266b</li></tt>\r\n\s\s\s\s\s\s<li><tt>84d6d5667487ecbc05f6f224cc01992c</li></tt>\r\n\s\s\s\s\s\s<li><tt>648f0f9539b35a9e9e61fda7701a1693</li></tt>\r\n\s\s\s\s\s\s<li><tt>5c5e0d59b2e3f6010e3720a651999dd7</li></tt>\r\n\s\s\s\s\s\s<li><tt>4a4681fd7fbf0720393ded5101340dd8</li></tt>\r\n\s\s\s\s\s\s<li><tt>9cc08a1dd849926f0b0a1353fc4280e4</li></tt>\r\n\s\s\s\s\s\s<li><tt>7073c9e581128e004991842920467628</li></tt>\r\n\s\s\s\s\s\s<li><tt>4079d58eb2de88ef63e3fc5c40cdeee2</li></tt>\r\n\s\s\s\s\s\s<li><tt>92d30d25b40ed01825870b14965a9c32</li></tt>\r\n\s\s\s\s\s\s<li><tt>68278bcb406403b517cb283c7c8cc3a1</li></tt>\r\n\s\s\s\s\s\s<li><tt>61de05a0cde2d41d4af015754d40a24f</li></tt>\r\n\s\s\s\s\s\s<li><tt>a7b0d4e2a481159e4cb0a3f1476ad564</li></tt>\r\n\s\s\s\s\s\s<li><tt>0682219c58ac381a19c5c1ad41de01d0</li></tt>\r\n\s\s\s\s\s\s<li><tt>6609359b034a200469d5010a4b2d3ed3</li></tt>\r\n\s\s\s\s\s\s<li><tt>7702fb3632c6be0edf577f1a0548d605</li></tt>\r\n\s\s\s\s\s\s<li><tt>fc187d80fd1b3aa1cb026d96505d5842</li></tt>\r\n\s\s\s\s\s\s<li><tt>c930ad51583d691fde1d625f06efa867</li></tt>\r\n\s\s\s\s\s\s<li><tt>c53d2196f446a1f07492f5fb990e74b7</li></tt>\r\n\s\s\s\s\s\s<li><tt>d9fef59bc28563bc6cfd0672bba4c7db</li></tt>\r\n\s\s\s\s\s\s<li><tt>edbe140000000049454e44ae426082</li></tt>\r\n\s\s\s\s</ol>\r\n\s\s</li>\r\n</ol>\r\n\r\n\r\n<hr\s/><i>rkeene\sadded\son\s2010-10-13\s15:42:47:</i><br\s/>\r\nIt\sworks\sin\sthe\strivial\scase\sposted\spreviously,\sbut\sfails\swith\sthe\sfollowing\skit:\r\nhttp://code.google.com/p/wubwikit/downloads/detail?name=wub-20100922.kit\r\n\r\nIn\sthe\skit:\r\n<verbatim>\r\n%\sset\sfd\s[open\scross.png]\r\nmk7\r\n%\sfconfigure\s$fd\s-encoding\sbinary\r\n%\sset\sdata\s[read\s$fd];\sputs\s[string\slength\s$data]\r\n654\r\n%\sfile\sstat\scross.png\sx\r\n%\sparray\sx\r\nx(atime)\s\s\s=\s1285147347\r\nx(blksize)\s=\s135312827\r\nx(blocks)\s\s=\s583863729869319636\r\nx(ctime)\s\s\s=\s1285147347\r\nx(dev)\s\s\s\s\s=\s-143965300\r\nx(gid)\s\s\s\s\s=\s0\r\nx(ino)\s\s\s\s\s=\s0\r\nx(mode)\s\s\s\s=\s33279\r\nx(mtime)\s\s\s=\s1285147347\r\nx(nlink)\s\s\s=\s1\r\nx(size)\s\s\s\s=\s655\r\nx(type)\s\s\s\s=\sfile\r\nx(uid)\s\s\s\s\s=\s0\r\n</verbatim>\r\n\r\n<hr\s/><i>rkeene\sadded\son\s2010-10-13\s15:45:53:</i><br\s/>\r\nStill\snot\ssure\swhere\sthis\sis\sfailing.\r\n\r\n<verbatim>\r\n%\smk::loop\sx\sdb.dirs!90.files\s{\sputs\s"$x,\s[mk::get\s$x\sname]"\s}\r\ndb.dirs!90.files!0,\scross.png\r\ndb.dirs!90.files!1,\stick.png\r\ndb.dirs!90.files!2,\stclp.gif\r\n%\smk::view\sinfo\sdb.dirs!90.files\s\s\r\nname\ssize:I\sdate:I\scontents:B\r\n%\smk::get\sdb.dirs!90.files!0\ssize\r\n655\r\n%\sstring\slength\s[mk::get\sdb.dirs!90.files!0\scontents]\r\n655\r\n%\smk::get\sdb.dirs!90.files!0\s-size\scontents\r\n655\r\n%\r\n</verbatim>\r\n\r\n<hr\s/><i>rkeene\sadded\son\s2010-10-13\s15:52:42:</i><br\s/>\r\nOh,\swait\sI\sdid\s"-encoding\sbinary"\sin\smy\ssecond\stest\swhere\sit\sshould\shave\sbeen\s"-translation\sbinary".\r\n\r\nUsing\s"-translation\sbinary"\scauses\sit\sto\sbe\sread\scorrectly.\r\n\r\n<verbatim>\r\n%\sset\sfd\s[open\scross.png\sr]\r\nmk7\r\n%\sfconfigure\s$fd\s-translation\sbinary\s\s\s\s\s\s\s\s\s\r\n%\sset\sdata\s[read\s$fd];\sputs\s[string\slength\s$data]\r\n655\r\n%\sbinary\sscan\s$data\sH*\sdata_hex\r\n1\r\n</verbatim>\r\n\r\n<hr\s/><i>rkeene\sadded\son\s2010-10-16\s21:12:41:</i><br\s/>\r\nThe\sissue\sonly\soccurs\swhen\susing\s<nowiki>[fcopy]</nowiki>\sand\smk4vfs\schannels\swithout\sdirect\smode.\r\n\r\nSimple\stest:\r\n<verbatim>\r\nvfs::mk4::Mount\stest.mk\s/TEST\r\nset\sfd\s[open\s/TEST/cross.png]\r\nfconfigure\s$fd\s-translation\sbinary\r\nset\sout\s[open\s/dev/null\sw]\r\nset\s::fcopy_complete\s0\r\nproc\sfcopy_complete\s{args}\s{\sset\s::fcopy_complete\s1\s}\r\nfcopy\s$fd\s$out\s-command\sfcopy_complete\r\nafter\s3000\r\nupdate\r\nputs\s"FCOPY:\s$fcopy_complete"\r\n</verbatim>
K 0990f53b1a77cacafccaf440d277edeae0cab70a
U rkeene
Z 790c3ab7a628eee3df138a0e3b9d9d51