Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2023 19:09:21 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3a7ffe206ce7 - main - localedef: expand the default charmap
Message-ID:  <202309051909.385J9Lnf042173@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=3a7ffe206ce7e4741fae26432f6d6e5159207f45

commit 3a7ffe206ce7e4741fae26432f6d6e5159207f45
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-09-02 06:13:02 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
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",	'"' },



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202309051909.385J9Lnf042173>