mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-24 14:20:10 +01:00
fixed #779
This commit is contained in:
@@ -52,6 +52,8 @@ ZipFileInfo::ZipFileInfo(const ZipLocalFileHeader& header):
|
|||||||
|
|
||||||
if (getHostSystem() == ZipCommon::HS_UNIX)
|
if (getHostSystem() == ZipCommon::HS_UNIX)
|
||||||
setUnixAttributes();
|
setUnixAttributes();
|
||||||
|
|
||||||
|
_rawInfo[GENERAL_PURPOSE_POS+1] |= 0x08; // Set "language encoding flag" to indicate that filenames and paths are in UTF-8.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -204,6 +204,8 @@ void ZipLocalFileHeader::init( const Poco::Path& fName,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
setCompressionMethod(ZipCommon::CM_STORE);
|
setCompressionMethod(ZipCommon::CM_STORE);
|
||||||
|
|
||||||
|
_rawHeader[GENERAL_PURPOSE_POS+1] |= 0x08; // Set "language encoding flag" to indicate that filenames and paths are in UTF-8.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user