AcceptEnv LANG LC_* vs available locales

Harald Dunkel harald.dunkel at aixigo.com
Wed Apr 27 20:14:12 AEST 2022


Hi Ingo,

On 2022-04-25 14:23:06, Ingo Schwarze wrote:
> Hi Harald,
> 
> Harald Dunkel wrote on Mon, Apr 25, 2022 at 10:05:43AM +0200:
> 
>> forwarding LANG and LC_* variables to the peer seems to be only
>> reasonable,
> 
> Absolutely not, what a terrible idea.
> 

I couldn't agree more, but please see the xterm packages on Debian
and RedHat, and my related question about how to *undo* the

	SendEnv LANG LC_*

in Debian's /etc/ssh/ssh_config in my .ssh/config.

Anyway, the problem here is that MacOS sets a locale "UTF-8" in
LC_CTYPE instead of "en_US.UTF-8", which produces problems even
though UTF-8 is available on all involved systems.


> For an introduction to the topic, see
> 
>    https://undeadly.org/cgi?action=article&sid=20160308204011
> 
> The end of that article specifically discusses ssh(1).
> 

I highly appreciate your link, but for a Linux package maintainer it
is too easy to ignore the problem.

Maybe you should consider to add some guidelines about how to handle
locales into a README within the openssh source package, or in
ssh_config(5), sshd_config(5), etc.?


Thank you very much

Harri


More information about the openssh-unix-dev mailing list