From: Miltiadis Vasilakis Date: Tue, 10 Apr 2012 09:37:50 +0000 (+0300) Subject: Use NFC for local files that are uploaded. Fix menu labels. Update version. X-Git-Tag: v0.9 X-Git-Url: https://code.grnet.gr/git/pithos-macos/commitdiff_plain/5f0e51321cf1f0d5d0374e858c235c4b3d390a79 Use NFC for local files that are uploaded. Fix menu labels. Update version. --- diff --git a/pithos-macos/PithosBrowserController.m b/pithos-macos/PithosBrowserController.m index 2186c60..08812f3 100644 --- a/pithos-macos/PithosBrowserController.m +++ b/pithos-macos/PithosBrowserController.m @@ -1099,7 +1099,8 @@ forDraggedRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column { if ([fileManager fileExistsAtPath:filePath isDirectory:&isDirectory]) { if (!isDirectory) { // Upload file - NSString *objectName = [objectNamePrefix stringByAppendingPathComponent:[filePath lastPathComponent]]; + NSString *objectName = [[objectNamePrefix stringByAppendingPathComponent:[filePath lastPathComponent]] + precomposedStringWithCanonicalMapping]; // Operation: Upload a local file __block NSOperation *operation = [NSBlockOperation blockOperationWithBlock:^{ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -1176,7 +1177,8 @@ forDraggedRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column { [alert addButtonWithTitle:@"Cancel"]; NSInteger choice = [alert runModal]; if (choice == NSAlertFirstButtonReturn) { - NSString *objectName = [objectNamePrefix stringByAppendingPathComponent:[filePath lastPathComponent]]; + NSString *objectName = [[objectNamePrefix stringByAppendingPathComponent:[filePath lastPathComponent]] + precomposedStringWithCanonicalMapping]; // Operation: Upload a local directory and its descendants // The resulting ASIPithosObjectRequests are chained through dependencies __block NSOperation *operation = [NSBlockOperation blockOperationWithBlock:^{ diff --git a/pithos-macos/PithosSyncDaemon.m b/pithos-macos/PithosSyncDaemon.m index 0e74d76..cfd186e 100644 --- a/pithos-macos/PithosSyncDaemon.m +++ b/pithos-macos/PithosSyncDaemon.m @@ -1476,6 +1476,7 @@ objectForKey:pithosContainer.name]; NSDirectoryEnumerator *dirEnumerator = [fileManager enumeratorAtPath:containerDirectoryPath]; for (NSString *objectName in dirEnumerator) { + objectName = [objectName precomposedStringWithCanonicalMapping]; if (operation.isCancelled) { operation.completionBlock = nil; [self saveLocalState]; diff --git a/pithos-macos/PithosUtilities.m b/pithos-macos/PithosUtilities.m index da1a2a9..78fbc10 100644 --- a/pithos-macos/PithosUtilities.m +++ b/pithos-macos/PithosUtilities.m @@ -439,7 +439,7 @@ if (!isDirectory) { hashes = [HashMapHash objectHashMapStrings:filePath withBlockHash:blockHash andBlockSize:blockSize]; if (hashes) { - subObjectName = [objectName stringByAppendingPathComponent:objectNameSuffix]; + subObjectName = [[objectName stringByAppendingPathComponent:objectNameSuffix] precomposedStringWithCanonicalMapping]; fileName = [filePath lastPathComponent]; if ([filePath hasSuffix:@"/"]) fileName = [fileName stringByAppendingString:@"/"]; @@ -478,7 +478,7 @@ } } else { - subObjectName = [objectName stringByAppendingPathComponent:objectNameSuffix]; + subObjectName = [[objectName stringByAppendingPathComponent:objectNameSuffix] precomposedStringWithCanonicalMapping]; fileName = [filePath lastPathComponent]; objectRequest = [ASIPithosObjectRequest writeObjectDataRequestWithPithos:pithos containerName:containerName diff --git a/pithos-macos/en.lproj/MainMenu.xib b/pithos-macos/en.lproj/MainMenu.xib index 897f540..80ac1a3 100644 --- a/pithos-macos/en.lproj/MainMenu.xib +++ b/pithos-macos/en.lproj/MainMenu.xib @@ -127,7 +127,7 @@ - Hide pithos-macos + Hide Pithos+ h 1048576 2147483647 @@ -165,7 +165,7 @@ - Quit pithos-macos + Quit Pithos+ q 1048576 2147483647 @@ -280,7 +280,7 @@ - + Delete @@ -635,7 +635,7 @@ delete: - + 625 @@ -879,7 +879,7 @@ - + @@ -1180,7 +1180,7 @@ 623 - + diff --git a/pithos-macos/pithos-macos-Info.plist b/pithos-macos/pithos-macos-Info.plist index 909bbc7..e2aaf40 100644 --- a/pithos-macos/pithos-macos-Info.plist +++ b/pithos-macos/pithos-macos-Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.8.3 + 0.9 CFBundleSignature ???? CFBundleURLTypes @@ -32,7 +32,7 @@ CFBundleVersion - 20120326a + 20120410.0 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSMainNibFile