liuyong/ziparchive

Use of deprecated NSString call in ZipArchive class

GoogleCodeExporter opened this issue · 0 comments

What version of the product are you using? On what operating system?

ZipArchive 1.2

Mac OS X 10.6.8/ iOS SDK 4.3

Please provide any additional information below.

On line 210 (approx.) of ZipArchive.mm the line


NSString * strPath = [NSString  stringWithCString:filename];

should be changed to 

NSString * strPath = [NSString  stringWithCString:filename 
encoding:NSUTF8StringEncoding];

as the first call is deprecated in Mac OS 10.4

Original issue reported on code.google.com by mcj_1...@me.com on 1 Jul 2011 at 10:43