Lines 41-47
Link Here
|
41 |
* David McKnight (IBM) - [220379] [api] Provide a means for contributing custom BIDI encodings |
41 |
* David McKnight (IBM) - [220379] [api] Provide a means for contributing custom BIDI encodings |
42 |
* David McKnight (IBM) - [225573] [dstore] client not falling back to single operation when missing batch descriptors (due to old server) |
42 |
* David McKnight (IBM) - [225573] [dstore] client not falling back to single operation when missing batch descriptors (due to old server) |
43 |
* Martin Oberhuber (Wind River) - [226262] Make IService IAdaptable |
43 |
* Martin Oberhuber (Wind River) - [226262] Make IService IAdaptable |
44 |
* David McKnight (IBM) - [227406][api][dstore] need apis for getting buffer size in IDataStoreProvider |
44 |
* David McKnight (IBM) - [227406][api][dstore] need apis for getting buffer size in IDataStoreProvider |
|
|
45 |
* David McKnight (IBM) - [229610] [api] File transfers should use workspace text file encoding |
45 |
*******************************************************************************/ |
46 |
*******************************************************************************/ |
46 |
|
47 |
|
47 |
package org.eclipse.rse.internal.services.dstore.files; |
48 |
package org.eclipse.rse.internal.services.dstore.files; |
Lines 80-85
Link Here
|
80 |
import org.eclipse.rse.services.clientserver.ISystemFileTypes; |
81 |
import org.eclipse.rse.services.clientserver.ISystemFileTypes; |
81 |
import org.eclipse.rse.services.clientserver.NamePatternMatcher; |
82 |
import org.eclipse.rse.services.clientserver.NamePatternMatcher; |
82 |
import org.eclipse.rse.services.clientserver.PathUtility; |
83 |
import org.eclipse.rse.services.clientserver.PathUtility; |
|
|
84 |
import org.eclipse.rse.services.clientserver.SystemEncodingUtil; |
83 |
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager; |
85 |
import org.eclipse.rse.services.clientserver.archiveutils.ArchiveHandlerManager; |
84 |
import org.eclipse.rse.services.clientserver.messages.CommonMessages; |
86 |
import org.eclipse.rse.services.clientserver.messages.CommonMessages; |
85 |
import org.eclipse.rse.services.clientserver.messages.ICommonMessageIds; |
87 |
import org.eclipse.rse.services.clientserver.messages.ICommonMessageIds; |
Lines 775-781
Link Here
|
775 |
if (resultChild.getType().equals(IUniversalDataStoreConstants.DOWNLOAD_RESULT_SUCCESS_TYPE)) |
777 |
if (resultChild.getType().equals(IUniversalDataStoreConstants.DOWNLOAD_RESULT_SUCCESS_TYPE)) |
776 |
{ |
778 |
{ |
777 |
if (!isBinary){ // do standard conversion if this is text! |
779 |
if (!isBinary){ // do standard conversion if this is text! |
778 |
String localEncoding = System.getProperty("file.encoding"); //$NON-NLS-1$ |
780 |
String localEncoding = SystemEncodingUtil.getInstance().getLocalDefaultEncoding(); |
779 |
|
781 |
|
780 |
IFileServiceCodePageConverter codePageConverter = CodePageConverterManager.getCodePageConverter(encoding, this); |
782 |
IFileServiceCodePageConverter codePageConverter = CodePageConverterManager.getCodePageConverter(encoding, this); |
781 |
|
783 |
|
Lines 1018-1024
Link Here
|
1018 |
{ |
1020 |
{ |
1019 |
// do standard conversion if this is text! |
1021 |
// do standard conversion if this is text! |
1020 |
if (!isBinaries[i]){ // do standard conversion if this is text! |
1022 |
if (!isBinaries[i]){ // do standard conversion if this is text! |
1021 |
String localEncoding = System.getProperty("file.encoding"); //$NON-NLS-1$ |
1023 |
String localEncoding = SystemEncodingUtil.getInstance().getLocalDefaultEncoding(); |
1022 |
IFileServiceCodePageConverter codePageConverter = CodePageConverterManager.getCodePageConverter(hostEncodings[i], this); |
1024 |
IFileServiceCodePageConverter codePageConverter = CodePageConverterManager.getCodePageConverter(hostEncodings[i], this); |
1023 |
|
1025 |
|
1024 |
codePageConverter.convertFileFromRemoteEncoding(remoteElement.getName(), localFile, hostEncodings[i], localEncoding, this); |
1026 |
codePageConverter.convertFileFromRemoteEncoding(remoteElement.getName(), localFile, hostEncodings[i], localEncoding, this); |
Lines 1484-1491
Link Here
|
1484 |
} |
1486 |
} |
1485 |
|
1487 |
|
1486 |
|
1488 |
|
1487 |
|
1489 |
if (status == null) return false; |
1488 |
if (status == null) return false; |
|
|
1489 |
if (null != monitor && monitor.isCanceled()) |
1490 |
if (null != monitor && monitor.isCanceled()) |
1490 |
{ |
1491 |
{ |
1491 |
SystemMessage msg = new SimpleSystemMessage(Activator.PLUGIN_ID, |
1492 |
SystemMessage msg = new SimpleSystemMessage(Activator.PLUGIN_ID, |