1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

[179939] BIDI3.3: HCG Text files written in ASCII Hebrew do not look correctly. Do not download to UTF-8 encoding unnecessarily. Just download to the encoding that is specified for the remote file.

If an encoding is not explicitly specified, then download in the platform defalt encoding. Optimize dstore to download in the binary mode since encoding is no longer UTF-8.
This commit is contained in:
Kushal Munir 2007-04-19 05:41:19 +00:00
parent 49f5af68cc
commit d6c7ba4fad

View file

@ -579,7 +579,7 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
return false;
}
int mode;
/* int mode;
if (isBinary)
{
@ -588,8 +588,12 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
else
{
mode = IUniversalDataStoreConstants.TEXT_MODE;
}
}*/
// just download as binary since we do not have to convert to UTF-8 anyway
// the miner does a binary download anyway
int mode = IUniversalDataStoreConstants.BINARY_MODE;
DataStore ds = getDataStore();
String remotePath = remoteParent + getSeparator(remoteParent) + remoteFile;