Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1078036

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

From Felix Lechner <felix.lechner@lease-up.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#973313: Is the "LC_ALL=C.UTF-8" export to forked bash child process that run man check?
Date 2021-10-25 18:40 +0200
Message-ID <DcbaW-R0-3@gated-at.bofh.it> (permalink)
References (5 earlier) <B4X7s-3y2-5@gated-at.bofh.it> <DbOHs-3Ju-77@gated-at.bofh.it> <DbZW9-28q-1@gated-at.bofh.it> <B4X7s-3y2-5@gated-at.bofh.it> <DbZW9-28q-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#973313: The locales package not installed in salsa lintian Docker image xiao sheng wen(肖盛文) <atzlinux@sina.com> - 2021-10-24 06:00 +0200
  Bug#973313: The locales package not installed in salsa lintian Docker image Felix Lechner <felix.lechner@lease-up.com> - 2021-10-24 06:20 +0200
    Bug#973313: The locales package not installed in salsa lintian Docker image xiao sheng wen(肖盛文) <atzlinux@sina.com> - 2021-10-24 12:00 +0200
      Bug#973313: The locales package not installed in salsa lintian Docker image Felix Lechner <felix.lechner@lease-up.com> - 2021-10-24 12:30 +0200
        Bug#973313: The locales package not installed in salsa lintian Docker image xiao sheng wen(肖盛文) <atzlinux@sina.com> - 2021-10-24 15:50 +0200
          Bug#973313: The locales package not installed in salsa lintian Docker image Felix Lechner <felix.lechner@lease-up.com> - 2021-10-24 18:40 +0200
            Bug#973313: Is the "LC_ALL=C.UTF-8" export to forked bash child process that run man check? xiao sheng wen(肖盛文) <atzlinux@sina.com> - 2021-10-25 06:40 +0200
              Bug#973313: Is the "LC_ALL=C.UTF-8" export to forked bash child process that run man check? Felix Lechner <felix.lechner@lease-up.com> - 2021-10-25 18:40 +0200
                Bug#973313: ssh to salsa-runner.debian.net debug xiao sheng wen(肖盛文) <atzlinux@sina.com> - 2021-10-26 09:40 +0200
                Bug#973313: add one locale command in Executing "step_script" stage xiao sheng wen(肖盛文) <atzlinux@sina.com> - 2021-10-26 10:00 +0200
    Bug#973313: The locales package not installed in salsa lintian Docker image xiao sheng wen(肖盛文) <atzlinux@sina.com> - 2021-10-24 17:20 +0200

csiph-web