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
This commit is contained in:
Kyle Evans 2023-09-02 01:13:02 -05:00
parent 20845a6994
commit 3a7ffe206c

View file

@ -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", '"' },