Skip to content

Instantly share code, notes, and snippets.

@bholmes

bholmes/zip.diff Secret

Created June 11, 2016 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bholmes/09c9a4e5a5c9a2f14831a7b2b7ce89aa to your computer and use it in GitHub Desktop.
Save bholmes/09c9a4e5a5c9a2f14831a7b2b7ce89aa to your computer and use it in GitHub Desktop.
diff --git a/mcs/class/System.IO.Compression/SharpCompress/Writer/Zip/ZipCentralDirectoryEntry.cs b/mcs/class/System.IO.Compression/SharpCompress/Writer/Zip/ZipCentralDirectoryEntry.cs
index 5060897..8254a19 100644
--- a/mcs/class/System.IO.Compression/SharpCompress/Writer/Zip/ZipCentralDirectoryEntry.cs
+++ b/mcs/class/System.IO.Compression/SharpCompress/Writer/Zip/ZipCentralDirectoryEntry.cs
@@ -22,7 +22,7 @@ namespace SharpCompress.Writer.Zip
byte[] encodedFilename = Encoding.UTF8.GetBytes(FileName);
byte[] encodedComment = Encoding.UTF8.GetBytes(Comment);
- outputStream.Write(new byte[] {80, 75, 1, 2, 0x14, 0, 0x0A, 0}, 0, 8);
+ outputStream.Write(new byte[] {80, 75, 1, 2, 0x3F, 0, 0x14, 0}, 0, 8);
HeaderFlags flags = HeaderFlags.UTF8;
if (!outputStream.CanSeek)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment