mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 22:55:51 +02:00
[191599] use shell encoding specified
This commit is contained in:
parent
76448cea22
commit
c071d5d148
1 changed files with 10 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
* Martin Oberhuber (Wind River) - Adapted from LocalHostShell.
|
* Martin Oberhuber (Wind River) - Adapted from LocalHostShell.
|
||||||
* Sheldon D'souza (Celunite) - Adapted from SshHostShell
|
* Sheldon D'souza (Celunite) - Adapted from SshHostShell
|
||||||
* Sheldon D'souza (Celunite) - [187301] support multiple telnet shells
|
* 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;
|
package org.eclipse.rse.internal.services.telnet.shell;
|
||||||
|
|
||||||
|
@ -49,7 +50,15 @@ public class TelnetHostShell extends AbstractHostShell implements IHostShell {
|
||||||
|
|
||||||
fTelnetClient = fSessionProvider.makeNewTelnetClient(new NullProgressMonitor());
|
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);
|
fStderrHandler = new TelnetShellOutputReader(this, null,true);
|
||||||
OutputStream outputStream = fTelnetClient.getOutputStream();
|
OutputStream outputStream = fTelnetClient.getOutputStream();
|
||||||
//TODO check if encoding or command to execute needs to be considered
|
//TODO check if encoding or command to execute needs to be considered
|
||||||
|
|
Loading…
Add table
Reference in a new issue