Switch the default locale to C.UTF-8 before FreeBSD 13

Baptiste Daroussin bapt at FreeBSD.org
Tue Oct 27 16:53:08 UTC 2020


On Tue, Oct 27, 2020 at 05:43:19PM +0100, Dimitry Andric wrote:
> On 27 Oct 2020, at 16:47, Baptiste Daroussin <bapt at FreeBSD.org> wrote:
> > 
> > I would like to switch the default locale to C.UTF-8 in FreeBSD 13.0
> > 
> > https://reviews.freebsd.org/D26973
> > 
> > The C.UTF-8 locales is the same as the actual C locale except it does support
> > the unicode character set. But the collation (aka how sort is being done) etc
> > are still the same as the C locale.
> > 
> > What opinion on the matter?
> 
> It's certainly an improvement, as long as we are sure that no scripting
> (either in the base system or in ports) breaks because of this.
> 
> That said, we might also need to bite the bullet, and figure out how to
> set an actual language in the installer, or during system bootup. The
> rest of the world (aka Linux) already sets e.g. LANG=en_US.UTF-8.
> 

On Debian this is C.UTF-8 FYI which is an extension we took from them ;)

en_US.UTF-8 can break script because it also means to activate unicode
collation. the point of C.UTF-8 is to prevent that

best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20201027/84b153f0/attachment.sig>


More information about the freebsd-arch mailing list