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

Bug#973313: Is the "LC_ALL=C.UTF-8" export to forked bash child process that run man check?



Hi,

On Sun, Oct 24, 2021 at 9:33 PM xiao sheng wen <atzlinux@sina.com> wrote:
>
> I can reproduce this bug in my test server.

I can't believe it. Finally!

> My notebook use zh_CN.UTF-8 locale, ssh to the test server.

Is the test server an sshd inside Docker?

> So,my question is: Is the "LC_ALL=C.UTF-8" export to forked bash child process that run man check?

It is. I confirmed that just now by replacing the call to 'man' with
'/bin/sh -c "echo $LC_ALL"'. The output was C.UTF-8.

> I think is that the screen output of console running Docker inherit the en_US.UTF-8 locale from your host, you may run locale to see the LANG in Docker. Is it en_US.UTF-8?

Here is the complete output in Docker:

root@5fc85dcffb70:/# locale -a
C
C.UTF-8
POSIX

root@5fc85dcffb70:/# locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

And here on the server:

On the host, I use:

➤ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

The output from 'locale -a' is too long. I must have 'locales-all' installed.

Kind regards
Felix Lechner


Reply to: