[
  {
    "Id": "129835",
    "ThreadId": "39145",
    "Html": "great honor to your wonderful job first!<br>\r\nrecently i picked up the library in my software to archive some project folders, since then i found a small problem with it.<br>\r\njust as the head of my post mentions, some words at the end of the zip file's comment lost.<br>\r\nwhen i looked into the source, i thought it maybe just a historical negligence while dealing with multi-char words.<br>\r\nin<br>\r\n&nbsp;&nbsp;&nbsp; Ionic.Utils.Zip.ZipFile.WriteCentralDirectoryFooter()<br>\r\nthere is a byte space allocation statement:<br>\r\n&nbsp;&nbsp;&nbsp; if (Comment != null) bufferLength += Comment.Length;<br>\r\n&nbsp;&nbsp;&nbsp; byte[] bytes = new byte[bufferLength];<br>\r\nwell, this works well with one-char characters, but when coming to multi-char words, there wont be enough space to store them, so some words would be cast out.<br>\r\nso i made some small tune-ups to the code, moved statement<br>\r\n&nbsp;&nbsp;&nbsp; byte[] block = SharedUtilities.StringToByteArray(Comment, Encoding);<br>\r\nto the head of the function, before the space allocation<br>\r\nand modified the way of space calculation<br>\r\n&nbsp;&nbsp;&nbsp; if (Comment != null) bufferLength += Comment.Length;<br>\r\n==&gt; if (Comment != null) bufferLength += block.Length;<br>\r\nthen, the problem is fixed up, your library works fine all.<br>\r\nonce again thanks to you and your great work, it helps a lot!<br>\r\n<br>\r\n<br>\r\n",
    "PostedDate": "2008-11-03T18:12:32.207-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "129862",
    "ThreadId": "39145",
    "Html": "<div>yes, that's a good catch. thanks.</div>\r\n<div style=\"font:10pt tahoma\">\r\n<div><br>\r\n</div>\r\n</div>\r\n",
    "PostedDate": "2008-11-03T22:59:22.92-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "130035",
    "ThreadId": "39145",
    "Html": "I updated the v1.6 release to properly support multi-byte charsets in the ZipFile.Comment.  \r\n",
    "PostedDate": "2008-11-04T12:20:26.167-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]