1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

[199773] Default file transfer mode is ignored for some file types (FTP always uploads binary)

This commit is contained in:
Javier Montalvo Orus 2007-09-13 13:49:44 +00:00
parent 477364bc02
commit 4603b2a1b1

View file

@ -18,6 +18,7 @@
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods * Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API * Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
* Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem * Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem
* Javier Montalvo Orus (Symbian) - [199773] Default file transfer mode is ignored for some file types
*******************************************************************************/ *******************************************************************************/
package org.eclipse.rse.subsystems.files.core.servicesubsystem; package org.eclipse.rse.subsystems.files.core.servicesubsystem;
@ -452,10 +453,8 @@ public final class FileServiceSubSystem extends RemoteFileSubSystem implements I
protected boolean isBinary(String localEncoding, String hostEncoding, String remotePath) protected boolean isBinary(String localEncoding, String hostEncoding, String remotePath)
{ {
boolean isText = !hostEncoding.equals(localEncoding) && return SystemFileTransferModeRegistry.getInstance().isBinary(remotePath) ||
SystemFileTransferModeRegistry.getInstance().isText(remotePath) && SystemEncodingUtil.getInstance().isXML(remotePath);
!SystemEncodingUtil.getInstance().isXML(remotePath) ;
return !isText;
} }
protected boolean isBinary(IRemoteFile source) protected boolean isBinary(IRemoteFile source)