Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Nov 2023 14:17:43 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Christos Margiolis <christos@freebsd.org>
Cc:        freebsd-arch@freebsd.org, bojan.novkovic@fer.hr, imp@freebsd.org
Subject:   Re: HEADS UP: IUTF8 to be enabled by default
Message-ID:  <202311041417.3A4EHhmw015359@critter.freebsd.dk>
In-Reply-To: <lrxccjlnihx5pke4hrufgebxmgrrbmlbd246o55phhzyhqlhfp@yxvipsuagrdc>
References:  <lrxccjlnihx5pke4hrufgebxmgrrbmlbd246o55phhzyhqlhfp@yxvipsuagrdc>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311041417.3A4EHhmw015359>