From 87fbff4227b6374ca588c16ea0f6d4ea6640786a Mon Sep 17 00:00:00 2001 From: David McKnight Date: Thu, 13 Mar 2008 19:23:22 +0000 Subject: [PATCH] [222406] Need to be able to override local encoding --- .../rse/files/ui/resources/SystemEditableRemoteFile.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java index 5ed9426b58b..38d8cea462f 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemEditableRemoteFile.java @@ -27,6 +27,7 @@ * Xuan Chen (IBM) - [210816] Archive testcases throw ResourceException if they are run in batch * David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible * David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared + * David McKnight (IBM) - [222406] Need to be able to override local encoding *******************************************************************************/ package org.eclipse.rse.files.ui.resources; @@ -1520,6 +1521,9 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP else { // using text mode so the char set needs to be local String localEncoding = System.getProperty("file.encoding"); //$NON-NLS-1$ + if (properties.getLocalEncoding() != null){ + localEncoding = properties.getLocalEncoding(); + } file.setCharset(localEncoding, null); } }