Re: [docs] [PATCH v2] ref-manual: use standardized method accross both ubuntu and debian for locale install

Antonin Godard
2024-11-25T08:07:52Z

Hi Guénaël,

On Fri Nov 22, 2024 at 10:25 AM CET, Guénaël MULLER wrote:
[...]
>> Yes, "locale --all-locales" does return "en_US.utf8" while we install the
>> "en_US.UTF-8" locale (different string, not sure why).
>>
>> I seem to be able to build with both Debian/Ubuntu with this command:
>>
>> LANG="en_US.UTF-8" locale-gen
>>
>> Maybe this is a more straightforward approach, closer to what we had
>> before.
>> What do you think? Guénaël would you be able to update your patch with this
>> command if this works for you too?
>>
>>
> How do you achieve this ? I tried this with podman container (should be the
> same with docker) and it clearly doesn't work at all:
>
> podman run -it --rm debian:12 /bin/bash
> apt update && apt install locales -y
> LANG="en_US.UTF-8" locale-gen
>
> This generates zero locale whereas "dpkg-reconfigure locales" work as
> expected.

I may have gotten the impression that this worked, but perhaps not then. The
locales were probably already generated or something... Let's keep it your way
then, and if we come up with another solution we'll update this command.

Thanks for taking the time to look into it!

Antonin

--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering