From nobody Mon Nov 20 16:58:09 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 4SYtxF2w88z51YKW; Mon, 20 Nov 2023 16:58:09 +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 4SYtxF2GlVz4d5V; Mon, 20 Nov 2023 16:58:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700499489; 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=8E8iTa6eUEinMRXxDfVEc+Tu+IfDeAEWOOPflY9ADW4=; b=bMYEgT/W0MW1C4isOosmu/mTj/1fR2f+CbwJB0fLjg/G+ne7ns2ZLNrgZtRxWgcmipZUDr /CLU18jtwRcrlHLrTIwHkMPVkbcgYadkassR6q8o6nsuW+aygs3klhnsNDXr/mlP0qc5qU kyP3FHOGCwV2MRB21ecJOrgandw3O23us1prlPjcarueHiQR1GrnRbZUoPvg9u1MGY2St/ cQ4D09JObnCXt5iavJAI1b/f2+wuONIAwgeMy3nIzNt0fJyGAwyYGYSeqYUfrI8g+xY3g9 OqxygQQjqeIpm7KZP0TYebXDRIHBy/OINHbbADkZo4wwc3qA4Lt5ql7vsZdMdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700499489; 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=8E8iTa6eUEinMRXxDfVEc+Tu+IfDeAEWOOPflY9ADW4=; b=vg5Ky1DZt5BJuL46CoB7kzMYe+GUtNluadYgZ6e17dxyynYenJ3P3gPrKg23OsiMdZRnXs eUzzIJ1eUnzSI4/Jo0bBtqcR9WaotNqS3Ga5gExyGqDzBlVwREKXzuYfGr/NUn9UvZUCbp VR0IwIWV+p9imOSc1kQk4gFvRjjQPLj+ougOvBPmaxPHbvpHC2IDgIIbtRpBG71O2wxJTI HPsar0OaTqwQpDFgUHrO5DS6eSO1TmTKsZW1k38dpGOR/eMpyl23DmTmWXGe0Fd3nD07b5 8n0PSMnPpew/c7ZIuAmHMkdcV4t7QqKeMgl5mXxP3ej1S9Uz+IT0V+nLO8T3KA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700499489; a=rsa-sha256; cv=none; b=CaTYX1q7jDyWgNrd+d9k1kaxt2UGjJP3E0lb38irHIvlZdw0ObNDXylnjGnLc5ie0JhdkA a684/wWQtW22SF7RXNPn9VAGEk91NxNfOSFQi/2p3BSHSqcaezrCigNZAFLn3DNlqilGGY SBdRI7yc8MnRDLk3Af/OhQiJOVjTYfXcJbpAy/Ht46xQLP+GjRrJDYlyYx/SBSpPmgSAgV h2LzZe8EZg28zhv5QkIl0TY0MopjBBIuQ3pG39j83koU5eA0/Fv2xG+R7NtGE3e71+T8Lm m+vB6W0SeDhwPOMy+8ftLS5cBMr7HNtUeve08F2KPp4gH0Rn2dH+q86lm5moqA== 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 4SYtxF1KVkz10k2; Mon, 20 Nov 2023 16:58:09 +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 3AKGw9Wj074083; Mon, 20 Nov 2023 16:58:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AKGw9Wu074080; Mon, 20 Nov 2023 16:58:09 GMT (envelope-from git) Date: Mon, 20 Nov 2023 16:58:09 GMT Message-Id: <202311201658.3AKGw9Wu074080@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: cd03271ccd16 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: cd03271ccd16f0585584a1e0f2806526490e6a59 Auto-Submitted: auto-generated The branch stable/13 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=cd03271ccd16f0585584a1e0f2806526490e6a59 commit cd03271ccd16f0585584a1e0f2806526490e6a59 Author: Christos Margiolis AuthorDate: 2023-11-04 20:31:47 +0000 Commit: Christos Margiolis CommitDate: 2023-11-20 16:57:14 +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 \