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\nrkeene\sadded\son\s2010-10-13\s15:29:31:\r\n
    \r\n\s\s
  1. \r\n\s\s\s\sCreate\smk4vfs\r\n\s\s\s\s
      \r\n\s\s\s\s\s\s
    1. $\smkdir\sx.vfs
    2. \r\n\s\s\s\s\s\s
    3. $\scp\scross.png\sx.vfs/
    4. \r\n\s\s\s\s\s\s
    5. $\s./tclkit-8.5.9-linux-i686\ssdx.kit\swrap\sx
    6. \r\n\s\s\s\s\s\s
    7. 1\supdates\sapplied
    8. \r\n\s\s\s\s
    \r\n\s\s
  2. \r\n\s\s
  3. \r\n\s\s\s\sTest\sreading\s"cross.png"\sfrom\sthe\smk4vfs\r\n\s\s\s\s
      \r\n\s\s\s\s\s\s
    1. %\svfs::mk4::Mount\sx\sx
    2. \r\n\s\s\s\s\s\s
    3. mk4vfs1
    4. \r\n\s\s\s\s\s\s
    5. %\scd\sx
    6. \r\n\s\s\s\s\s\s
    7. %\sglob\s*
    8. \r\n\s\s\s\s\s\s
    9. cross.png
    10. \r\n\s\s\s\s\s\s
    11. %\sset\sfd\s[open\scross.png]
    12. \r\n\s\s\s\s\s\s
    13. mk7
    14. \r\n\s\s\s\s\s\s
    15. %\sfconfigure\s$fd\s-translation\sbinary
    16. \r\n\s\s\s\s\s\s
    17. %\sset\sdata\s[read\s$fd];\sputs\s[string\slength\s$data]
    18. \r\n\s\s\s\s\s\s
    19. 655
    20. \r\n\s\s\s\s\s\s
    21. %\sbinary\sscan\s$data\sH*\sdata_hex
    22. \r\n\s\s\s\s\s\s
    23. 1
    24. \r\n\s\s\s\s\s\s
    25. %\sputs\s$data_hex
    26. \r\n\s\s\s\s\s\s
    27. 89504e470d0a1a0a0000000d49484452
    28. \r\n\s\s\s\s\s\s
    29. 000000100000001008060000001ff3ff
    30. \r\n\s\s\s\s\s\s
    31. 610000000467414d410000afc837058a
    32. \r\n\s\s\s\s\s\s
    33. e90000001974455874536f6674776172
    34. \r\n\s\s\s\s\s\s
    35. 650041646f626520496d616765526561
    36. \r\n\s\s\s\s\s\s
    37. 647971c9653c000002214944415438cb
    38. \r\n\s\s\s\s\s\s
    39. 9593eb4e135114858989c989cfa05689
    40. \r\n\s\s\s\s\s\s
    41. 86c89180c41b425b0628ad0d0826d0fb
    42. \r\n\s\s\s\s\s\s
    43. 855ea480b4a5eda44da136ea0f4d7c12
    44. \r\n\s\s\s\s\s\s
    45. 9f0b44c5deb0d299763ad3e5ae984a2d
    46. \r\n\s\s\s\s\s\s
    47. 25e1c74ece64cefaf6acb5f70c0018b8
    48. \r\n\s\s\s\s\s\s
    49. 4cd5d742d7ce3e775f10333a2ade57ec
    50. \r\n\s\s\s\s\s\s
    51. 0f72d9ed8dd76c4e432fa02dceeca295
    52. \r\n\s\s\s\s\s\s
    53. ce428b277b20755f80d703613436b6f0
    54. \r\n\s\s\s\s\s\s
    55. ebe5cae7eae2d2bd7f80bf62e4dfa145
    56. \r\n\s\s\s\s\s\s
    57. a525443437b73b10d9bbc6a93b9ad138
    58. \r\n\s\s\s\s\s\s
    59. 90cba37d3e365be3e519d39553402acd
    60. \r\n\s\s\s\s\s\s
    61. 5a09516bedbe013e7e8296cdb5016804
    62. \r\n\s\s\s\s\s\s
    63. 425cf6f8397587b21d03e8bdec0fe078
    64. \r\n\s\s\s\s\s\s
    65. feb95a16e6ae7659d06209a6be8ea99a
    66. \r\n\s\s\s\s\s\s
    67. 9801de7f809a4aa31e0c83ba43d98a02
    68. \r\n\s\s\s\s\s\s
    69. d9bd3fe78ac942e259766e88cdc8266b
    70. \r\n\s\s\s\s\s\s
    71. 84d6d5667487ecbc05f6f224cc01992c
    72. \r\n\s\s\s\s\s\s
    73. 648f0f9539b35a9e9e61fda7701a1693
    74. \r\n\s\s\s\s\s\s
    75. 5c5e0d59b2e3f6010e3720a651999dd7
    76. \r\n\s\s\s\s\s\s
    77. 4a4681fd7fbf0720393ded5101340dd8
    78. \r\n\s\s\s\s\s\s
    79. 9cc08a1dd849926f0b0a1353fc4280e4
    80. \r\n\s\s\s\s\s\s
    81. 7073c9e581128e004991842920467628
    82. \r\n\s\s\s\s\s\s
    83. 4079d58eb2de88ef63e3fc5c40cdeee2
    84. \r\n\s\s\s\s\s\s
    85. 92d30d25b40ed01825870b14965a9c32
    86. \r\n\s\s\s\s\s\s
    87. 68278bcb406403b517cb283c7c8cc3a1
    88. \r\n\s\s\s\s\s\s
    89. 61de05a0cde2d41d4af015754d40a24f
    90. \r\n\s\s\s\s\s\s
    91. a7b0d4e2a481159e4cb0a3f1476ad564
    92. \r\n\s\s\s\s\s\s
    93. 0682219c58ac381a19c5c1ad41de01d0
    94. \r\n\s\s\s\s\s\s
    95. 6609359b034a200469d5010a4b2d3ed3
    96. \r\n\s\s\s\s\s\s
    97. 7702fb3632c6be0edf577f1a0548d605
    98. \r\n\s\s\s\s\s\s
    99. fc187d80fd1b3aa1cb026d96505d5842
    100. \r\n\s\s\s\s\s\s
    101. c930ad51583d691fde1d625f06efa867
    102. \r\n\s\s\s\s\s\s
    103. c53d2196f446a1f07492f5fb990e74b7
    104. \r\n\s\s\s\s\s\s
    105. d9fef59bc28563bc6cfd0672bba4c7db
    106. \r\n\s\s\s\s\s\s
    107. edbe140000000049454e44ae426082
    108. \r\n\s\s\s\s
    \r\n\s\s
  4. \r\n
\r\n\r\n\r\nrkeene\sadded\son\s2010-10-13\s15:42:47:\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\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\r\n\r\nrkeene\sadded\son\s2010-10-13\s15:45:53:\r\nStill\snot\ssure\swhere\sthis\sis\sfailing.\r\n\r\n\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\r\n\r\nrkeene\sadded\son\s2010-10-13\s15:52:42:\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\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\r\n\r\nrkeene\sadded\son\s2010-10-16\s21:12:41:\r\nThe\sissue\sonly\soccurs\swhen\susing\s[fcopy]\sand\smk4vfs\schannels\swithout\sdirect\smode.\r\n\r\nSimple\stest:\r\n\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 K 0990f53b1a77cacafccaf440d277edeae0cab70a U rkeene Z 790c3ab7a628eee3df138a0e3b9d9d51