From 3439e0e7e0e11e43176a236f52e82a0d4419a786 Mon Sep 17 00:00:00 2001 From: astrograph Date: Fri, 17 Jan 2025 15:25:06 +0100 Subject: [PATCH] use UTF-8 as default encoding in the Terminal (#1020) the rest of Eclipse now uses UTF-8 as default encoding. The tm.terminal code reverts to null when the encoding begins with "Default" and this leads to UTF-8 being selected from Charset.defaultEncoding instead of ISO-8859 when the displayed default value is selected. Co-authored-by: Philipp SALZGEBER --- NewAndNoteworthy/CDT-12.0.md | 9 +++++++++ .../CDT-12.0-default-terminal-encoding.png | Bin 0 -> 14649 bytes .../controls/SshWizardConfigurationPanel.java | 2 +- .../about.properties | 4 ++-- .../terminal/emulator/VT100Emulator.java | 2 +- .../connector/TerminalConnectorFactoryTest.java | 2 +- .../connector/TerminalConnectorTest.java | 2 +- .../AbstractExtendedConfigurationPanel.java | 6 +++--- .../terminal/view/ui/tabs/TabFolderManager.java | 4 ++-- 9 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 NewAndNoteworthy/images/CDT-12.0-default-terminal-encoding.png diff --git a/NewAndNoteworthy/CDT-12.0.md b/NewAndNoteworthy/CDT-12.0.md index 13adaf94504..858a4877d1d 100644 --- a/NewAndNoteworthy/CDT-12.0.md +++ b/NewAndNoteworthy/CDT-12.0.md @@ -52,6 +52,15 @@ The View Performance preference page, which is CDT specific, has been relocated This only affects where in the Preferences tree the page is located, the preferences and key names have not changed. In addition, this page is always visible. +# Terminal + +## Default encoding for terminal is now UTF-8 + +For a [while](https://eclipse.dev/eclipse/news/4.24/platform.html#explicit-encoding-workspaces), the default encoding in Eclipse has been UTF-8. +Starting in CDT 12, the Terminal will now default to UTF-8. + +

+ # API Changes, current and planned ## Breaking API changes diff --git a/NewAndNoteworthy/images/CDT-12.0-default-terminal-encoding.png b/NewAndNoteworthy/images/CDT-12.0-default-terminal-encoding.png new file mode 100644 index 0000000000000000000000000000000000000000..e7b9e4a3fb96e3ec4dacaa0bd48c6dd01c9e01f3 GIT binary patch literal 14649 zcmeI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(;etzIo2pj0z6)bRTXvOGD)j)%+tJTzT9oOL^c&Id3$_fbH-6s)GBa{UYdC@g6u2c6=xU_GrCpO#VGkQe8yXB~Bnxo!G^{xc7g=SkT9zDiAT z!3@Q4be_)Nq@>`|4rHrSgVD+FCT4Kx79Zy3quxs4LGY8M z=>aW6cx)CWQ{y38MM6TBA1o^;RoBw`{nm@R#PVMI5B{7Q*Oap$(Dv;xIL!!jNS zO8r;-w$~@kSD#Lc!6cRq;zB6n4*5SQvFQ#CTqe*a$B@*b3zNkUhO0_mWstcku8y4yrqVC0%wl0ed?j3hUP~F{EiO~Lj4$lv&7{Q@!{UiM5LaME z4+g?!X+a?i3`e=pnM>Q32vOhOgdc(qDTJO5-gh>v=>JLTqh<7%p$%ZL|6f_0 zkwks&;VSz9E-q8r#B~(?qx@ThSlZ&W z16nk1G+Wq+h}U)Z`$2`Onwo33PuHqHx?fA?`I?VF zP`1GH)PL$2U7Lls>xn#E{9X69xaH|Cf{K$aP5h(Px5q=N@g%-WZ-8|m)vSU-LSoe= z1~SnGX^3bd`~|02Z2kJ+B^xlZ+I9YGSpL>hi7xg|S$tbP<~J)g2#|5w_5Pa)!ORPMJ~GEy9~!OQTuG<# zcnO~%?(pS=DeJy}h+g_idxBlh_q)a^Ys%4`zVH5e7J3N19^dX? zNPMOJgA2ibVuSA1kbFMm-3^FIAT5)InK?E(-*4$axiI5`tKw|gOr8F)_{{MVf&=41 zbYax=BmX1e&JP5GJ4X&D6{xXlYil7{C=PyQS68-tfX@x@Z7DHG%k#{;z|ebNYWGH9 zst8+>jFU5Qc2*u-|6? encodings = new ArrayList<>(); // Default encoding - encodings.add("Default (ISO-8859-1)"); //$NON-NLS-1$ + encodings.add("Default (UTF-8)"); //$NON-NLS-1$ // The currently selected IDE encoding from the preferences String ideEncoding = getResourceEncoding(); @@ -612,7 +612,7 @@ protected void setEncoding(String encoding) { Assert.isNotNull(encoding); if (encodingCombo != null && !encodingCombo.isDisposed()) { - int index = encodingCombo.indexOf("ISO-8859-1".equals(encoding) ? "Default (ISO-8859-1)" : encoding); //$NON-NLS-1$ //$NON-NLS-2$ + int index = encodingCombo.indexOf("UTF-8".equals(encoding) ? "Default (UTF-8)" : encoding); //$NON-NLS-1$ //$NON-NLS-2$ if (index != -1) encodingCombo.select(index); else { @@ -642,7 +642,7 @@ protected String getEncoding() { protected boolean isEncodingValid() { try { String encoding = getEncoding(); - return Charset.isSupported(encoding != null ? encoding : "ISO-8859-1"); //$NON-NLS-1$ + return Charset.isSupported(encoding != null ? encoding : "UTF-8"); //$NON-NLS-1$ } catch (IllegalCharsetNameException e) { return false; } diff --git a/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/tabs/TabFolderManager.java b/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/tabs/TabFolderManager.java index 955b782e37e..982f7596caa 100644 --- a/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/tabs/TabFolderManager.java +++ b/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/tabs/TabFolderManager.java @@ -833,8 +833,8 @@ public final void updateStatusLine() { buffer.append(" - "); //$NON-NLS-1$ String encoding = terminal.getEncoding(); - if (encoding == null || "ISO-8859-1".equals(encoding)) { //$NON-NLS-1$ - encoding = "Default (ISO-8859-1)"; //$NON-NLS-1$ + if (encoding == null || "UTF-8".equals(encoding)) { //$NON-NLS-1$ + encoding = "Default (UTF-8)"; //$NON-NLS-1$ } buffer.append(NLS.bind(Messages.TabFolderManager_encoding, encoding));