Control: merge -1 1011547
Control: tags -1 moreinfo

Hi Julian,

Sorry for taking so long to get back to this issue.

On Sun, 25 Sep 2022 14:51:51 +0100 Julian Gilbey <[email protected]> wrote:
So when I run "autopkgtest-build-lxc debian testing", it creates a
container with the default locale being en_GB.UTF-8 - indeed, in that
container, locale gives the same output.

If the container were created with the locale being C.UTF-8, then it
might fare a little better, although a quick attempt to do this still
seemed to end up with the default locale being en_GB.UTF-8.

It is entirely possible that there is a different cause, though.
Inside the container, I have:

root@autopkgtest-testing:~# ls /usr/lib/locale/
C.utf8  locale-archive

In version 5.30 Simon rewrote the logic that (among others) handled the locale in the testbed. $(man autopkgtest) mentions that the default LANG is C.UTF-8 and that you can set it on the command line with --set-lang. All other LC_ variables are unset (in lib/in-testbed/wrapper.sh). I just tried (with a d/t/control that has Test-Command: env) and see that LANG is indeed set to C.UTF-8 when I don't use `--set-lang `and is set to en_US.UTF-8 when I specify that with `--set-lang`. (On my host system, LANG=en_US.UTF-8) Can you still reproduce the issue you reported?

Paul

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to