Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix incorrect string encoding used for filename. Fixes #57.

  • Loading branch information...
commit 6ebc32f2dd449c2f98765015f94c5ae0ad2fce8f 1 parent bcac6dd
@mattconnolly authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ZipArchive.m
View
2  ZipArchive.m
@@ -604,7 +604,7 @@ -(NSArray*) getZipFileContents // list the contents of the zip archive. must
filename[fileInfo.size_filename] = '\0';
// check if it contains directory
- NSString * strPath = [NSString stringWithCString:filename encoding:NSASCIIStringEncoding];
+ NSString * strPath = [NSString stringWithCString:filename encoding:self.stringEncoding];
free( filename );
if( [strPath rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"/\\"]].location!=NSNotFound )
{// contains a path
Please sign in to comment.
Something went wrong with that request. Please try again.