From nobody Tue Sep 05 19:09:21 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 4RgFRj3Hj6z4rvVQ; Tue, 5 Sep 2023 19:09:21 +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 4RgFRj2s4Bz4QkM; Tue, 5 Sep 2023 19:09:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693940961; 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=sAXXQ6aUA7cqOuglqweBZ84dtWX7DJX/tlyPc1B4tN4=; b=Rb9denQEwci5JhXs0MCJlukQ1qd/JXTvovqL0kbSaTKFZlyjICnftYSaQABtKy+hdzzZMh royQkwIHX+kocr08z1sGFVHd2J9LEpcf+mb2F0wnv2PACg19wRrSxixnoFwVfbjXyYRNtU ogPZY+6hEM7w1GYYyp6adv7cTv8q6q9/itYc1kqhmsCnxeCGrdInzSIxZXpZMlXUV5k8/c tK1X1JQiDsTy6OfA6XbBwxucE+LDu6iq+gi74gHQ4IOk4ut+A3kpVejpmkR4VbjjV9Uh0h Bo+CRyCkblFMpE95blOYhFUWIm5S4fpX1KbfJ2ocuvtcmWNJ93dQHB9Sp7UWqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693940961; a=rsa-sha256; cv=none; b=t8jO7MfTDKIRx/9+f2/AB6nlEmkaRNf40y+fH+SMRf9jpNyLazUchdMjFVoruNjYs0wQlf DuigoOS/t7Y/kxKvjVVtEJWSHLvD9CScLqEaD8oHttx7Ll7Am3tHc0z5AbVeFdu9fO6zrF nyTjDt8yMpIXvu4NYwynKGhQBOT8BaDlxqhunzvDytAqtuFUHJObsJzI72QkRwYUhxOv6l lLZ32SQcCbMZNRN1t7otOsf1QygegFPoN2Gq8o0t3F6k+krItGCF6uPCwAkDy56J65Gmh1 sBTwqlbasfulFQy+pFgwUt2z70EIo2M3Kmd2VjgK1lpd+kGWXmX6XkleFquJ3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693940961; 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=sAXXQ6aUA7cqOuglqweBZ84dtWX7DJX/tlyPc1B4tN4=; b=kcEWeIA2jRu3N5N5YbUDHFTfa0zrSMot6+jl4923vihCjNNYIaFOdbosZuYKCisFOQc8D/ e1bEdEjgXMi94nOPrC4+iqF9q7u9LErN/gsGGG2iBgji4OvTNX/B0bTdf9BdY/QP3Uve3A k6UnsMv0FT/0mLvRAzFkSvStUQVlQsyTQUfThCg1HrP2kl6e6y2Eb6SjfC9mLdPha2ksrm tmkutDMbw1p6z4sGOMFnv9Xt8YhZ3xMi1D7Qt4cwv2pHxatFGPFFFhnUOzLz5LopTyeghs BEoBv7IP2/UI/2R1GrF5StNFj5dOa67MnFgRA79hTdP6kJKtV/vWradixSV02w== 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 4RgFRj1qX0zlbZ; Tue, 5 Sep 2023 19:09:21 +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 385J9LmE042176; Tue, 5 Sep 2023 19:09:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 385J9Lnf042173; Tue, 5 Sep 2023 19:09:21 GMT (envelope-from git) Date: Tue, 5 Sep 2023 19:09:21 GMT Message-Id: <202309051909.385J9Lnf042173@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 3a7ffe206ce7 - main - localedef: expand the default charmap 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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3a7ffe206ce7e4741fae26432f6d6e5159207f45 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=3a7ffe206ce7e4741fae26432f6d6e5159207f45 commit 3a7ffe206ce7e4741fae26432f6d6e5159207f45 Author: Kyle Evans AuthorDate: 2023-09-02 06:13:02 +0000 Commit: Kyle Evans CommitDate: 2023-09-05 19:08:59 +0000 localedef: expand the default charmap POSIX defines a number of other control characters as well as alternative aliases for some that should be provided in the default set, so let's go ahead and add those. Reviewed by: bapt, yuripv Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D41692 --- usr.bin/localedef/charmap.c | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/usr.bin/localedef/charmap.c b/usr.bin/localedef/charmap.c index 44b7e3292eae..1da4d8921ecb 100644 --- a/usr.bin/localedef/charmap.c +++ b/usr.bin/localedef/charmap.c @@ -70,13 +70,49 @@ static const struct { int ch; } portable_chars[] = { { "NUL", '\0' }, + { "SOH", '\x01' }, + { "STX", '\x02' }, + { "ETX", '\x03' }, + { "EOT", '\x04' }, + { "ENQ", '\x05' }, + { "ACK", '\x06' }, + { "BEL", '\a' }, { "alert", '\a' }, + { "BS", '\b' }, { "backspace", '\b' }, + { "HT", '\t' }, { "tab", '\t' }, - { "carriage-return", '\r' }, + { "LF", '\n' }, { "newline", '\n' }, + { "VT", '\v' }, { "vertical-tab", '\v' }, + { "FF", '\f' }, { "form-feed", '\f' }, + { "CR", '\r' }, + { "carriage-return", '\r' }, + { "SO", '\x0e' }, + { "SI", '\x0f' }, + { "DLE", '\x10' }, + { "DC1", '\x11' }, + { "DC2", '\x12' }, + { "DC3", '\x13' }, + { "DC4", '\x14' }, + { "NAK", '\x15' }, + { "SYN", '\x16' }, + { "ETB", '\x17' }, + { "CAN", '\x18' }, + { "EM", '\x19' }, + { "SUB", '\x1a' }, + { "ESC", '\x1b' }, + { "FS", '\x1c' }, + { "IS4", '\x1c' }, + { "GS", '\x1d' }, + { "IS3", '\x1d' }, + { "RS", '\x1e' }, + { "IS2", '\x1e' }, + { "US", '\x1f' }, + { "IS1", '\x1f' }, + { "DEL", '\x7f' }, { "space", ' ' }, { "exclamation-mark", '!' }, { "quotation-mark", '"' },