Skip to content

Commit 31aa75b

Browse files
authored
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 <[email protected]>
1 parent e0552f0 commit 31aa75b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

terminal/plugins/org.eclipse.tm.terminal.control/about.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
# Copyright (c) 2018, 2024 Contributors to the Eclipse Foundation
2+
# Copyright (c) 2018, 2025 Contributors to the Eclipse Foundation
33
#
44
# See the NOTICE file(s) distributed with this work for additional
55
# information regarding copyright ownership.
@@ -24,7 +24,7 @@ blurb=TM Terminal Control\n\
2424
Version: {featureVersion}\n\
2525
Build id: {0}\n\
2626
\n\
27-
Copyright (c) 2018, 2024 Contributors to the Eclipse Foundation
27+
Copyright (c) 2018, 2025 Contributors to the Eclipse Foundation
2828
\n\
2929
See the NOTICE file(s) distributed with this work for additional\n\
3030
information regarding copyright ownership.\n\

terminal/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ private void processAnsiCommand_n() {
12101210
}
12111211

12121212
try {
1213-
terminal.getOutputStream().write(reply.getBytes("ISO-8859-1")); //$NON-NLS-1$
1213+
terminal.getOutputStream().write(reply.getBytes("UTF-8")); //$NON-NLS-1$
12141214
terminal.getOutputStream().flush();
12151215
} catch (IOException ex) {
12161216
Logger.log("Caught IOException!"); //$NON-NLS-1$

0 commit comments

Comments
 (0)