Re: HEADS UP: IUTF8 to be enabled by default

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Sat, 04 Nov 2023 14:17:43 UTC
--------
Christos Margiolis writes:

> Two possible solutions I have thought of:
>
> 1. Add IUTF8 to TTYDEF_IFLAG in sys/sys/ttydefaults.h.
> 2. Add a check in tty_init_termios() whether the current locale is
>    UTF-8 (how?), and enable it there.
>
> What do you think? Could this change cause any side-effects we haven't
> thought about?

Ideally this should be part of libc's "unified session setup",
which UNIX unfortunately never have had.

With N different login shells, accounts which do not login to a
traditional shell etc. AND considering that UTF8 have universally
become the "lingua franka", I vote that it makes a lot more sense
to simply make it the default (ie: your first suggestion) rather
than add complexity all over the place, yet missing out some obscure
cases.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.