Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2023 16:55:13 GMT
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 637742252ffe - stable/14 - tty: set IUTF8 by default
Message-ID:  <202311201655.3AKGtD7u073303@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=637742252ffeb2f1cc48d6bfbe47bfa8d58f7fc5

commit 637742252ffeb2f1cc48d6bfbe47bfa8d58f7fc5
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2023-11-04 20:31:47 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2023-11-20 16:52:01 +0000

    tty: set IUTF8 by default
    
    128f63cedc14 and 9e589b093857 added proper UTF-8 backspacing handling in
    the tty(4) driver, which is enabled by setting the new IUTF8 flag
    through stty(1). Since the default locale is UTF-8, and the feature
    itself is important enough, enable IUTF8 by default.
    
    Related discussion:
    https://lists.freebsd.org/archives/freebsd-arch/2023-November/000534.html
    
    Reviewed by:    imp, bojan.novkovic_fer.hr
    Differential Revision:  https://reviews.freebsd.org/D42464
    
    (cherry picked from commit bb830e346bd50545e9868a1802d631afb6b50bb0)
---
 sys/sys/ttydefaults.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/ttydefaults.h b/sys/sys/ttydefaults.h
index 7e64babbc7f1..6f33973842ce 100644
--- a/sys/sys/ttydefaults.h
+++ b/sys/sys/ttydefaults.h
@@ -45,7 +45,7 @@
 /*
  * Defaults on "first" open.
  */
-#define	TTYDEF_IFLAG	(BRKINT	| ICRNL	| IMAXBEL | IXON | IXANY)
+#define	TTYDEF_IFLAG	(BRKINT	| ICRNL	| IMAXBEL | IXON | IXANY | IUTF8)
 #define	TTYDEF_OFLAG	(OPOST | ONLCR)
 #define	TTYDEF_LFLAG_NOECHO (ICANON | ISIG | IEXTEN)
 #define	TTYDEF_LFLAG_ECHO (TTYDEF_LFLAG_NOECHO \



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