Bug 244404 - [usability][shells] SSH Only should auto-detect remote environment (for encoding)
Summary: [usability][shells] SSH Only should auto-detect remote environment (for encod...
Status: ASSIGNED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
: 271808 (view as bug list)
Depends on: 261481
Blocks: 160785 161774 162018 244363 250203
  Show dependency tree
 
Reported: 2008-08-18 05:43 EDT by Martin Oberhuber CLA
Modified: 2009-07-09 01:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2008-08-18 05:43:19 EDT
For dstore connections, the remote encoding can be auto-detected (see bug 179937 comment 1). It's been a frequent problem for users where the locale of the remote host did not match the one of the local host, that they did not find out how to specify the remote encoding properly.

We should therefore try to auto-detect the remote locale by running "env" or "set" in a remote shell. Knowing the list of remote environment variables upfront would be helpful for other applications as well, e.g. knowing the remote host type (Unix, Windows, other) or shell type (bash, csh, Windows cmd) in order to run shell commands to find out the PID of a remotely started process (bug 161774), or set environment variables (bug 162018). Other applications such as WinSCP, for instance, do perform such shell-based discovery mechanisms.

Once a list of remote environment variables is known, the "LC_ALL" variable or probably others could be used. Other remote settigns such as the shell type, for instance, perhaps need to be stored in other places than the list of environment variables.
Comment 1 Martin Oberhuber CLA 2009-06-17 14:06:15 EDT
*** Bug 271808 has been marked as a duplicate of this bug. ***