From nobody Sat Nov 04 20:32:17 2023 X-Original-To: dev-commits-src-main@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 4SN8Rk0HCKz4yY4n; Sat, 4 Nov 2023 20:32:18 +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 4SN8Rj6v17z4R3R; Sat, 4 Nov 2023 20:32:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699129938; 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=OO7lxEWtMO359P9+oVr8Opo0fcqPISpFtC675JarzLg=; b=HMyowt5xSGm0WNteiCT1mD5lw8E1eziS1gp0FPbVyTSui4lhwAs/dcTPDjB2UzkuRxkQym glEEOCND9kSkEsA2DeEneSr3usSoFJnozSx5FmdK0E6JCyyx76OTB9d33E67plVrSF8lnA kdRdFKF6xo6c9ZILeipmCX6lHsWmcWoDGmJoCBerkYW67A5XgWHhReJstcPwtbmsNfi2Mh ccWE/AVQE/baBUWgOnhF0nl0QINqXl67oIvXM2KF/skhtDy1UKcH02hYyC6iPW//9YhJQb HpPht3sw2ymZ8eWFZbxHRxutvVI5oY0OciL7yUgMrtTz2OQHh02fN8Cb1Pdz+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699129938; 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=OO7lxEWtMO359P9+oVr8Opo0fcqPISpFtC675JarzLg=; b=e9Cox6U5jMwAm9nTHg0PvS68Bk2uhIZ2dwkztOsXYo+ZfzLlEmkjd+3rrqK8ksNLUmBelE k8NwIoR3Ahlvmuw9DV7Kq4Qkir/IhK6OZj084BbKUjTMfknbI8uX+98NbUyxn2CEdWzWP6 SOrNm1NLcQzoHXhEQSgfVP6bcG2NgNYRRu+f/zXEncxISoFv6FqpDcHIbAmTG2xk9+NZPA PFdrlqlhrycDtqHvARf9LzpBuKrOOjre8lJJZZ3RG9hqJ6f3B9NcEZN6dCkKMvp9QLj4zp /V6fgnXX9ImMUTdAdjUPQapahGk0q08ILu8Je8aoBIpDTRPURz4xREDqFdtHvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699129938; a=rsa-sha256; cv=none; b=P5/aQFn80epCDzxCzdWZqwkqXR22udYVfWNCjqOLt1cBRrAzqJsG0MRABtIRUiNvEkWvZ0 xYasJP+EVmRSQOxpYwuOdTSeMnmNFchASv0bQYDNxOf4J8wS+qywPdIb4iOj1eA6byy+NV /aaJJCN4uU33fHEx3ikqEG0c588hDMYDHk16pcUHHhxpAmSTNk63trXSiR3TcKcvL1Xiu2 jNEQKHQnKaG5iSsoDoATKs1iUI9PMHGK64bgNsLhAEkVZ/Zd222bABC22w9D1ChoADm7Bo Ct+KViPEBKn48sad5XxppqxDHc5RlYgKoK2Tg+Y7knKSrVgn2xdr6UbyeY70BA== 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 4SN8Rj5xy8z1BYW; Sat, 4 Nov 2023 20:32:17 +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 3A4KWH30037297; Sat, 4 Nov 2023 20:32:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A4KWHhE037294; Sat, 4 Nov 2023 20:32:17 GMT (envelope-from git) Date: Sat, 4 Nov 2023 20:32:17 GMT Message-Id: <202311042032.3A4KWHhE037294@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: bb830e346bd5 - main - tty: set IUTF8 by default List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: bb830e346bd50545e9868a1802d631afb6b50bb0 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=bb830e346bd50545e9868a1802d631afb6b50bb0 commit bb830e346bd50545e9868a1802d631afb6b50bb0 Author: Christos Margiolis AuthorDate: 2023-11-04 20:31:47 +0000 Commit: Christos Margiolis CommitDate: 2023-11-04 20:31:47 +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 --- 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 \