1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

[332393] Default encoding is removed in System Connection property page

This commit is contained in:
David McKnight 2010-12-16 15:03:36 +00:00
parent 05df4315e0
commit 2c231ecfc0

View file

@ -18,6 +18,7 @@
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
* David McKnight (IBM) - [226574] don't show encoding if no subsystem supports it
* David McKnight (IBM) - [252708] Saving Profile Job happens when not changing Property Values on Connections
* Noriaki Takatsu (IBM) - [332393] Default encoding is removed in System Connection property page
********************************************************************************/
package org.eclipse.rse.internal.ui.propertypages;
@ -145,7 +146,7 @@ public class SystemConnectionPropertyPage extends SystemBasePropertyPage
conn.setDefaultEncoding(encoding, false);
}
// remote default encoding
else if (currentEncoding != null){
else if (currentEncoding != null && !encoding.equals(currentEncoding)){
// remove user encoding from host property first
conn.setDefaultEncoding(null, false);
// remove default remote encoding to indicate to get from remote system