bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Greek messages output to iOS ssh clients


From: Kerin Millar
Subject: Re: Greek messages output to iOS ssh clients
Date: Wed, 24 Nov 2021 19:01:43 +0000

On Wed, 24 Nov 2021 11:55:50 -0500 (EST)
jereme@jrandall.duckdns.org wrote:

> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: darwin17.7.0
> Compiler: /usr/bin/clang
> Compilation CFLAGS: -pipe -Os -DSSH_SOURCE_BASHRC -arch x86_64 
> uname output: Darwin imac11.local 17.7.0 Darwin Kernel Version 17.7.0: Fri 
> Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64 x86_64
> Machine Type: x86_64-apple-darwin17.7.0
> 
> Bash Version: 5.1
> Patch Level: 8
> Release Status: release
> 
> Description:
>       Upon ssh to bash 5.1.8 from a mobile device running iOS 15.1, error and 
> status messages are echoed by bash to the screen in the Greek alphabet and 
> language.
> 
> Repeat-By:
>       From an iPad or iPhone running iOS 15, use any ssh client app to 
> connect to and obtain a login shell on a Mac running OS 13.6. Enter, e.g., 
> the following sequence:
> /bin/sleep 300 &
> jobs
> In the output the sleep command will appear in English, but the "running" 
> status will be given in Greek.
> Then attempt to disconnect with the mistyped command
> exir
> The message explaining that the command is unknown will likewise be echoed in 
> Greek.
> 
> Fix:
>       [Description of how to fix the problem.  If you don't know a
>       fix for the problem, don't include this section.]
> I'd look at the source code that tells bash how to look up and find, on an 
> SSH_CLIENT running iOS, the locale key needed to select output messages for 
> echoing to the screen.

There's nothing here that implies a bug in bash. Try running "locale" in your 
remote shell. The meaning of the variables printed by that command is defined 
by https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html. 
Should the effective value of LC_MESSAGES not be to your liking, you are free 
to change it, be it in your operating system, in your login shell environment 
or in your scripts. Incidentally, by default, the sshd_config(5) shipped by 
macOS defines "AcceptEnv LANG LC_*", meaning that it honours all of the 
environment variables pertaining to the locale, as conveyed by the ssh(1) 
client.

-- 
Kerin Millar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]