Bug 179851

Summary: ssh doesn't pass locale-related environment by default
Product: [Fedora] Fedora Reporter: Dmitry Bolkhovityanov <d.yu.bolkhovityanov>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: openssh-4.3p1-2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-06 16:04:32 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 150221    
Description Flags
Patch for /etc/ssh/{ssh,sshd}_config none

Description Dmitry Bolkhovityanov 2006-02-03 08:34:33 EST
Description of problem:
Ssh doesn't pass "local" locale-related envvars to remote host, as it should.
This leads to various annoying consequences -- to the minimum, wrong language is
used, or even wrong encoding.
Suppose one is logging from utf8-based host to 8859-* or even KOI8-configured
one -- that remote host outputs 8-bit characters, which present illegal utf8
sequences; the reverse situation is unacceptable too -- when utf8-based host
presents what looks as garbage on, say, KOI8-configured xterm.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Set LANG=en_US.ISO-8859-1 (or just use non-utf8-configured-machine)
2. Ssh to some utf8-configured host.
3. Type "echo $LANG"
Actual results:

Expected results:

Additional info:
In fact, OpenSSH *does* support passing of envvars, locale-related ones should
just be listed in /etc/ssh/{ssh,sshd}_config in "SendEnv" and "AcceptEnv"
directives respectively BY DEFAULT.
Comment 1 Dmitry Bolkhovityanov 2006-02-03 08:34:33 EST
Created attachment 124103 [details]
Patch for /etc/ssh/{ssh,sshd}_config
Comment 2 Tomas Mraz 2006-02-03 09:04:09 EST
Valid enhancement request.