iSibDev / ziparchive

Automatically exported from code.google.com/p/ziparchive
0 stars 0 forks source link

Use of deprecated NSString call in ZipArchive class #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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