mirror of
https://github.com/claunia/osrepodbmgr.git
synced 2025-12-16 19:14:25 +00:00
Always open ZIP file in UTF-8.
This commit is contained in:
@@ -1151,7 +1151,7 @@ namespace osrepodbmgr.Core
|
|||||||
if(ZipFile.IsZipFile(Context.path))
|
if(ZipFile.IsZipFile(Context.path))
|
||||||
{
|
{
|
||||||
Context.unzipWithUnAr = true;
|
Context.unzipWithUnAr = true;
|
||||||
ZipFile zf = ZipFile.Read(Context.path);
|
ZipFile zf = ZipFile.Read(Context.path, new ReadOptions { Encoding = Encoding.UTF8 });
|
||||||
foreach(ZipEntry ze in zf)
|
foreach(ZipEntry ze in zf)
|
||||||
{
|
{
|
||||||
// ZIP created with Mac OS X, need to be extracted with The UnArchiver to get correct ResourceFork structure
|
// ZIP created with Mac OS X, need to be extracted with The UnArchiver to get correct ResourceFork structure
|
||||||
@@ -1219,7 +1219,7 @@ namespace osrepodbmgr.Core
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ZipFile zf = ZipFile.Read(Context.path);
|
ZipFile zf = ZipFile.Read(Context.path, new ReadOptions { Encoding = Encoding.UTF8 });
|
||||||
zf.ExtractExistingFile = ExtractExistingFileAction.OverwriteSilently;
|
zf.ExtractExistingFile = ExtractExistingFileAction.OverwriteSilently;
|
||||||
zf.ExtractProgress += Zf_ExtractProgress;
|
zf.ExtractProgress += Zf_ExtractProgress;
|
||||||
zipCounter = 0;
|
zipCounter = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user