From f57d7874db7dd0fc92260ea604b5eae0ac186989 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Tue, 19 May 2009 15:30:33 +0000 Subject: [PATCH] [276194] cannot open file with '...' in pathname -updated to not handle specifically for windows - to always escape dot sequence the same for all platforms --- .../org/eclipse/rse/core/model/SystemEscapeCharHelper.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemEscapeCharHelper.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemEscapeCharHelper.java index b38d586b8cb..6228a078686 100644 --- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemEscapeCharHelper.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/SystemEscapeCharHelper.java @@ -1,5 +1,5 @@ /******************************************************************************** - * Copyright (c) 2002, 2008 IBM Corporation and others. All rights reserved. + * Copyright (c) 2002, 2009 IBM Corporation and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -30,7 +30,6 @@ public class SystemEscapeCharHelper { private char changedChars[]; private int escapeStringLength; - private boolean isWindows; /** * Constructor. @@ -38,7 +37,6 @@ public class SystemEscapeCharHelper { */ public SystemEscapeCharHelper (char[] chars) { - isWindows = System.getProperty("os.name").toLowerCase().startsWith("win"); //$NON-NLS-1$//$NON-NLS-2$ changedChars = new char[chars.length+1]; for (int i = 0; i < chars.length; i++) @@ -76,7 +74,7 @@ public class SystemEscapeCharHelper { } i = i + escapeStringLength-1; } - else if (currentChar == '.' && isWindows){ // special case for bug 276194 + else if (currentChar == '.'){ // special case for bug 276194 if (fileName.length() > i + 1){ char nextChar = fileName.charAt(i + 1); if (nextChar == '.' || nextChar == File.separatorChar){