This commit is contained in:
Guenter Obiltschnig
2015-04-23 11:55:14 +02:00
parent 5cc5dd557b
commit db5378a3f5
2 changed files with 4 additions and 0 deletions

View File

@@ -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.
} }

View File

@@ -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.
} }