Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Jul 1, 2007
1 parent 97a10dc commit 6b8e0c5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Expand Up @@ -1243,6 +1243,7 @@ ko.lproj/Transfer.nib/keyedobjects.nib -text
ko.lproj/Transfer.strings -text
lib/commons-net-1.4.1.jar -text
lib/ext/junit.jar -text
lib/icu4j_3_6_1.jar -text
lib/jakarta-oro-2.0.8.jar -text
lib/log4j-1.2.13.jar -text
nl.lproj/Alert.nib/classes.nib -text
Expand Down
1 change: 1 addition & 0 deletions Info.plist
Expand Up @@ -78,6 +78,7 @@
<string>log4j-1.2.13.jar</string>
<string>jakarta-oro-2.0.8.jar</string>
<string>commons-net-1.4.1.jar</string>
<string>icu4j_3_6_1.jar</string>
</array>
<key>NSJavaRoot</key>
<string>Contents/Resources/Java</string>
Expand Down
1 change: 1 addition & 0 deletions Info.plist.debug
Expand Up @@ -80,6 +80,7 @@
<string>log4j-1.2.13.jar</string>
<string>jakarta-oro-2.0.8.jar</string>
<string>commons-net-1.4.1.jar</string>
<string>icu4j_3_6_1.jar</string>
</array>
<key>NSJavaRoot</key>
<string>Contents/Resources/Java</string>
Expand Down
Binary file added lib/icu4j_3_6_1.jar
Binary file not shown.
7 changes: 6 additions & 1 deletion source/ch/cyberduck/core/AbstractPath.java
@@ -1,5 +1,7 @@
package ch.cyberduck.core;

import com.ibm.icu.text.Normalizer;

import com.apple.cocoa.foundation.NSObject;

import java.io.IOException;
Expand Down Expand Up @@ -128,7 +130,7 @@ public boolean isRoot() {
public static String normalize(final String path) {
String normalized = path;
if(Preferences.instance().getBoolean("path.normalize")) {
while(!normalized.startsWith(DELIMITER)) {
while(!normalized.startsWith("\\\\") && !normalized.startsWith(DELIMITER)) {
normalized = DELIMITER + normalized;
}
while(!normalized.endsWith(DELIMITER)) {
Expand Down Expand Up @@ -160,6 +162,9 @@ public static String normalize(final String path) {
normalized = normalized.substring(0, normalized.length() - 1);
}
}
if(Preferences.instance().getBoolean("path.normalize.unicode")) {
normalized = Normalizer.normalize(normalized, Normalizer.NFC);
}
// Return the normalized path that we have completed
return normalized;
}
Expand Down

0 comments on commit 6b8e0c5

Please sign in to comment.