From nobody Mon Nov 20 16:55:13 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SYtss4RQZz51XnT; Mon, 20 Nov 2023 16:55:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SYtss3pgTz4c7V; Mon, 20 Nov 2023 16:55:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700499313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5rPR9XR1ffq1wG7ZTjg4yuNys2/Phmhb4r+RZSRyIx8=; b=WL/7UZsFgFW94ZP/+vVH/TjrWnpreZUuAoSSdBguIhnFgG/75kzti4W1Nh8pIbujNZiUHG CFGCfmzOYb2bxJl0n6dua155rrXajVwosThVs4FgrxLNo3Wj9M9e1r87QPVgNlqkDt3Acy RkF+1qGaiZc5YiTmTqD4Ezq9xzP4dA1P4AtqbICFHOMujOW/fLAIeX7aL61sEYs8mcInIx kowxTRaWtM9kh57ffSEoj1OnqRHfMVzPBo6OCXlJNSBmorf4FiZxjM8KAKbaerB/9HbEIa Ljk88ixc/mwf1/N6VlVKuOZTSIVDQsQGmF3pKFXbVcEVRfb7aqj72F/xVoIrkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700499313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5rPR9XR1ffq1wG7ZTjg4yuNys2/Phmhb4r+RZSRyIx8=; b=anzHgadAkMaDdv+IqAgaWCkCi9P/wvvzPRi9gunu37DiG111D/eHLcI8Rc790qhbz19XMW yTz94/Kf5jHDeC+b0aeV3jPZd79P0eFFGvmfKbsdFGjhBqzus6dOiGyyclIBtTCCXlS13m DXDgEzK5wBTQa5DGlBEJnWobb1L2BKNH8x71XQJ71Vslru3TsAXE8n+nxqvszCGwdeaTdR lUHPzwdSl9p5vkFIXRhGZieE3O11zoDsfP7Pa4Apktw4rWQdZeiL/z7QjXOyhuMfci7lPr MXNO9hmuP/te5mBWJdXYGjp6jxr9WtIIdyr5cxRDJpE5XLEMLMvFlMiYlKEurA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700499313; a=rsa-sha256; cv=none; b=kmsR+v24KFX0d8vDdY3r3DvGYModPBHSroPLk86+XaOFsyKbUqetfW8h0yqw9r+igP8Lr4 hFCkP/K8cdEe40LbbR6qEhJFtadNT3TJMUTM6Wsv0IZfMq80pXIGQ2WCv2hEczGYy4Snu4 Ip6f82wBmer6/tSkZ2vVLhYHt9NoxKP2rLRvU4Zj3fijLYRQfsprYwe3lp/FDrsVXPfAOI 6qAaXHPs+ZG+Ha2obNwLzFn/29lNNGG0PnyiDbkAC4mnex1V3yJ2WKgj5ZE7YMTDWGGEVi 6PDHAhdqSMhRS3Bf7agZnGTPYusd5YkeB92KqSfmh7RgormP6sOeDwZtpeJ3kg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SYtss2s8Dz10TB; Mon, 20 Nov 2023 16:55:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AKGtDAh073306; Mon, 20 Nov 2023 16:55:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AKGtD7u073303; Mon, 20 Nov 2023 16:55:13 GMT (envelope-from git) Date: Mon, 20 Nov 2023 16:55:13 GMT Message-Id: <202311201655.3AKGtD7u073303@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 637742252ffe - stable/14 - tty: set IUTF8 by default List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 637742252ffeb2f1cc48d6bfbe47bfa8d58f7fc5 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=637742252ffeb2f1cc48d6bfbe47bfa8d58f7fc5 commit 637742252ffeb2f1cc48d6bfbe47bfa8d58f7fc5 Author: Christos Margiolis AuthorDate: 2023-11-04 20:31:47 +0000 Commit: Christos Margiolis 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 \