Skip to content

Commit

Permalink
Change code page for ZipFileFolder to ZIP defaults
Browse files Browse the repository at this point in the history
This sets it to the default OEM (437) due to a change in the SharpZipLib Library, so it correctly reads file names in Icons Zip.
  • Loading branch information
maforget committed Apr 8, 2024
1 parent d2122d2 commit e1a7a1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cYo.Common/Compression/ZipFileFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public ZipFileFolder(Stream zipStream)

public ZipFileFolder(string zipFile)
{
this.zipFile = new ZipFile(zipFile);
//437 is the default Zip char Encoding. 850 is the default western windows
this.zipFile = new ZipFile(zipFile, StringCodec.FromCodePage(437));
}

protected override void Dispose(bool disposing)
Expand Down

0 comments on commit e1a7a1b

Please sign in to comment.