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

[191599] use shell encoding specified

This commit is contained in:
David McKnight 2007-07-12 17:59:21 +00:00
parent 76448cea22
commit c071d5d148

View file

@ -15,6 +15,7 @@
* Martin Oberhuber (Wind River) - Adapted from LocalHostShell.
* Sheldon D'souza (Celunite) - Adapted from SshHostShell
* Sheldon D'souza (Celunite) - [187301] support multiple telnet shells
* David McKnight (IBM) - [191599] Use the remote encoding specified in the host property page
*******************************************************************************/
package org.eclipse.rse.internal.services.telnet.shell;
@ -49,7 +50,15 @@ public class TelnetHostShell extends AbstractHostShell implements IHostShell {
fTelnetClient = fSessionProvider.makeNewTelnetClient(new NullProgressMonitor());
fStdoutHandler = new TelnetShellOutputReader(this, new BufferedReader(new InputStreamReader(fTelnetClient.getInputStream())), false);
if (encoding != null)
{
fStdoutHandler = new TelnetShellOutputReader(this, new BufferedReader(new InputStreamReader(fTelnetClient.getInputStream(), encoding)), false);
}
else
{
fStdoutHandler = new TelnetShellOutputReader(this, new BufferedReader(new InputStreamReader(fTelnetClient.getInputStream())), false);
}
fStderrHandler = new TelnetShellOutputReader(this, null,true);
OutputStream outputStream = fTelnetClient.getOutputStream();
//TODO check if encoding or command to execute needs to be considered