Fix encoding problems with ZipFile.

Without setting the DefaultCodePage it may cause problems on systems without 866 code page installed.
This commit is contained in:
ForNeVeR
2014-05-17 17:11:29 +07:00
parent 97ac0c494b
commit 06671c8aa4

View File

@@ -10,6 +10,7 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using ICSharpCode.SharpZipLib.Zip;
using SZipFile = ICSharpCode.SharpZipLib.Zip.ZipFile;
@@ -21,6 +22,11 @@ namespace OpenRA.FileSystem
SZipFile pkg;
int priority;
static ZipFile()
{
ZipConstants.DefaultCodePage = Encoding.Default.CodePage;
}
public ZipFile(string filename, int priority)
{
this.filename = filename;