From nobody Fri Dec 15 16:50:53 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 4SsFbK6SNCz53nY5; Fri, 15 Dec 2023 16:50:53 +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 4SsFbK5Wpyz4ZyM; Fri, 15 Dec 2023 16:50:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702659053; 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=mlph7qDdh5XXUEcETgiFAvFzt+fzyH5U1/pzxm81vck=; b=l2kBr1OR1euvJhQTHsGRyHqCl6OrI51D3a2DchEKR10nTciieq/TBpEFWxj8T6OM9ntV3e IAp54tgPdDcoQzGNQmdrRXPnhXFadMjS7pasyvspVXh1xzHR+2Ed7eGl1sTzibWfIQfTFG MIuuNcsE1N1xSTM1tnZG4xv68fsb04tOsvFRVWITliV5l94GJpyufL5bYU0HGxD3IKJ6+R zr5aGvUiErBCzJDrNwyq3KAkFIQaqh0CYVmwYDLmOrhww1XzPpfu5Csvh57QlzsDpWUgk+ SoZ8LgID1tBHVNVXGaPn6xHBznIgrQo+uXQV0XpnT2vc002ej4mAtBaZZTdKZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702659053; a=rsa-sha256; cv=none; b=ZRklpRIvj1Y0Ca8X3elQqr69FDn6FUsACe/SH5YQYE7jQ36X3AflJYL0vca3MCbniEISGH LlEe7gwY4niehDllLp2AGCW2LI4q166eRdaDUkTetotlzsPUKiq9SQlyFAqlr2Gxkamhy0 XK8GN+k6zmY19BEyQh4n5iyljyAvasalkd0t5ZUucnIFHyed5zGcQqsUL181ozukX/0T4G +P3c3CQKQfmd9Sqv88PdGYFR1Rw7EvVHmEZqYLy0OxUu2sJmKc5MYmGLm7PUiW4RRjfOyp KaOHr5yVE4VjeBYHlNGngsgM0OqC3UtIayHI2G8wqwdVbZfACw7EMhvQWGnHOg== 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=1702659053; 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=mlph7qDdh5XXUEcETgiFAvFzt+fzyH5U1/pzxm81vck=; b=oYNr4I0fkq8VL2NT/ha5sW6zfaY8aorkX8FDL3Z/C2S6llTgevuixfv05mblRUmlOO8xSB pWtg0QRiqS3qFQpbobFGSD3ussDr2JzTdFMupJZ7bxeYq12gW56bEE4J/yyujLK6FnWY8u 22XRMOj6uRAcuYxWd8HMhqR6/CrcRV43+xrQzky3XpwnDgmbw5e3g9JjwhzXE5qQz6Rnn6 hwUBr3h8JLvPCx0qYRwtF2zKSVlu8stBXENVNAbh3TaIJzMiOql+gZ176BcE2mHWNmlmBb pmWql+0Z2URVVK2t7yt2gF5PdoNkppdetEBJbYVM48LQ2ErhKRIWHT+gaytVKA== 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 4SsFbK4Zn5z3ys; Fri, 15 Dec 2023 16:50:53 +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 3BFGorWl010706; Fri, 15 Dec 2023 16:50:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BFGorCv010703; Fri, 15 Dec 2023 16:50:53 GMT (envelope-from git) Date: Fri, 15 Dec 2023 16:50:53 GMT Message-Id: <202312151650.3BFGorCv010703@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: cdd2624a9759 - stable/14 - localedef: expand the default charmap 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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: cdd2624a9759721ce7973635d079ab04704c8027 Auto-Submitted: auto-generated The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=cdd2624a9759721ce7973635d079ab04704c8027 commit cdd2624a9759721ce7973635d079ab04704c8027 Author: Kyle Evans AuthorDate: 2023-09-02 06:13:02 +0000 Commit: Kyle Evans CommitDate: 2023-12-15 00:57: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. (cherry picked from commit 3a7ffe206ce7e4741fae26432f6d6e5159207f45) --- 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", '"' },