samlaintx / ziparchive

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

stringWithCString deprecated #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you compile, you will get a warning about the line in ZipArchive.mm:

NSString * strPath = [NSString  stringWithCString:filename];

To fix it, just change it to include the encoding:

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

Original issue reported on code.google.com by christop...@gmail.com on 22 Jun 2010 at 1:53

GoogleCodeExporter commented 8 years ago
or                NSString * strPath = [NSString stringWithCString:filename];

Original comment by John.Tha...@gmail.com on 11 Sep 2010 at 9:02

GoogleCodeExporter commented 8 years ago
fixed here: http://github.com/soundevolution/ZipArchive/issues/issue/5

Original comment by matt.con...@gmail.com on 26 Sep 2010 at 8:03

GoogleCodeExporter commented 8 years ago
fixed in r12, just cleaning up tickets

Original comment by elinc...@hachisoft.com on 15 Feb 2011 at 8:19