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

Bug#1060288: locales: Please allow selection of C.UTF-8 when (re)configuring locales



Hi,

On 2024-01-09 17:47, Axel Scheepers wrote:
> Hello,
> 
> On Tue, Jan 9, 2024 at 7:18 AM Aurelien Jarno <aurelien@aurel32.net> wrote:
> > C.UTF-8 is not shown on purpose, because it doesn't need to be
> > generated, it is always available on the system. What you want is
> > probably to be able to select it as a default locale.
> 
> Ah yes indeed. I was confused because it's an entry in /etc/locale.gen
> and uncommenting it and running dpkg-reconfigure locales showed it was
> generating it. This is the first time I had to use C.UTF-8. Can you
> elaborate on why it would be problematic to include it in the list?

The problem is that you end-up with two C.UTF-8 locales on the system.
The one generated and the one provided by libc6. Normally that should
work fine, but there is no 100% guarantee that the C.UTF-8 working is
working fine during a major upgrade, between the time libc6 and locales
are unpacked.

> > A better workaround is probably to select a random locale to be
> > generated, then you should be able to select the C.UTF-8 locale as
> > default.
> 
> Thanks, yes indeed that's better.

I have just implemented that in git, the current behaviour is a
left-over from before the time C.UTF-8 existed.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net


Reply to: