@@ -185,13 +185,14 @@ bool ZipNormalized(const char* srcApk,const char* dstApk,int ZipAlignSize,int co
185185 int fileIndex=fileIndexs[i];
186186 std::string fileName=zipFile_name (&unzipper,fileIndex);
187187 if (g_isPrintApkNormalizedFileName)
188- printf ( " \" %s \"\n " ,fileName .c_str ());
188+ hpatch_printPath_utf8 (( " \" " +fileName+ " \"\n " ) .c_str ());
189189 if (compressLevel==0 ){
190190 check (Zipper_file_append_set_new_isCompress (&zipper,false ));
191191 } else if (isCompressedEmptyFile (&unzipper,fileIndex)){
192192 if (isNotCompressEmptyFile){
193193 check (Zipper_file_append_set_new_isCompress (&zipper,false ));
194- printf (" NOTE: \" %s\" is a compressed empty file, change to uncompressed!\n " ,fileName.c_str ());
194+ hpatch_printPath_utf8 ((" NOTE: \" " +fileName+" \" " ).c_str ());
195+ printf (" is a compressed empty file, change to uncompressed!\n " );
195196 }else {
196197 _compressedEmptyFiles.push_back (fileName);
197198 }
@@ -214,7 +215,8 @@ bool ZipNormalized(const char* srcApk,const char* dstApk,int ZipAlignSize,int co
214215 check (Zipper_endCentralDirectory_append (&zipper,&unzipper));
215216
216217 for (int i=0 ;i<(int )_compressedEmptyFiles.size ();++i){
217- printf (" WARNING: \" %s\" is a compressed empty file, can't patch by old(version<v1.3.5) ZipPatch!)\n " ,_compressedEmptyFiles[i].c_str ());
218+ hpatch_printPath_utf8 ((" WARNING: \" " +_compressedEmptyFiles[i]).c_str ());
219+ printf (" is a compressed empty file, can't patch by old(version<v1.3.5) ZipPatch!)\n " );
218220 }
219221 if (jarSignFileCount>0 ){
220222 if (isHaveApkV2Sign){
@@ -224,7 +226,7 @@ bool ZipNormalized(const char* srcApk,const char* dstApk,int ZipAlignSize,int co
224226 }
225227 }
226228 for (size_t i=0 ;i<removedFiles.size ();++i)
227- printf ( " WARNING: removed file: %s \n " , removedFiles[i].c_str ());
229+ hpatch_printPath_utf8 (( std::string ( " WARNING: removed file: \" " )+ removedFiles[i]+ " \"\n " ) .c_str ());
228230 if (isHaveApkV2Sign){
229231 printf (isHaveApkV3Sign?
230232 " WARNING: src removed ApkV2Sign & ApkV3Sign data (%d Byte, need re-sign)\n "
0 commit comments