1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 07:35:24 +02:00

[179939] BIDI3.3: HCG Text files written in ASCII Hebrew do not look correctly. The container encoding value was not being picked up. Now it should be.

This commit is contained in:
Kushal Munir 2007-04-24 17:42:55 +00:00
parent 20a4a9ef77
commit bb20d0849b

View file

@ -1121,7 +1121,13 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable
String encoding = RemoteFileEncodingManager.getInstance().getEncoding(getHostName(), getAbsolutePath());
if (encoding == null) {
encoding = getParentRemoteFileSubSystem().getRemoteEncoding();
if (isRoot()) {
encoding = getParentRemoteFileSubSystem().getRemoteEncoding();
}
else {
encoding = getParentRemoteFile().getEncoding();
}
}
return encoding;