diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-05-18 02:58:26 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-05-18 02:58:26 +0000 |
commit | 649d7b463a9e41c30dd3b6ec0966bf08b3c49630 (patch) | |
tree | ac5ab4b5dfe94433654cf17069f936299106c523 /sys/dev/vt | |
parent | 60b7b90d65d685b85504efafcc2d5746e9483bd5 (diff) | |
download | src-649d7b463a9e41c30dd3b6ec0966bf08b3c49630.tar.gz src-649d7b463a9e41c30dd3b6ec0966bf08b3c49630.zip |
vt: add more cp437 mappings for vga textmode
In UTF-8 locales mandoc uses a number of characters outside of the Basic
Latin group, e.g. from general punctuation or miscellaneous mathematical
symbols, and these rendered as ? in text mode.
This change adds (char, replacement, code point, description):
¦ | U+00A6 Broken bar
✓ √ U+2713 Checkmark
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=333777
Diffstat (limited to 'sys/dev/vt')
-rw-r--r-- | sys/dev/vt/hw/vga/vt_vga.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/vt/hw/vga/vt_vga.c b/sys/dev/vt/hw/vga/vt_vga.c index 9fad473800d2..daf53df8538d 100644 --- a/sys/dev/vt/hw/vga/vt_vga.c +++ b/sys/dev/vt/hw/vga/vt_vga.c @@ -205,6 +205,7 @@ static const struct unicp437 cp437table[] = { { 0x0020, 0x20, 0x5e }, { 0x00a0, 0x20, 0x00 }, { 0x00a1, 0xad, 0x00 }, { 0x00a2, 0x9b, 0x00 }, { 0x00a3, 0x9c, 0x00 }, { 0x00a5, 0x9d, 0x00 }, + { 0x00a6, 0x7c, 0x00 }, { 0x00a7, 0x15, 0x00 }, { 0x00aa, 0xa6, 0x00 }, { 0x00ab, 0xae, 0x00 }, { 0x00ac, 0xaa, 0x00 }, { 0x00b0, 0xf8, 0x00 }, { 0x00b1, 0xf1, 0x00 }, @@ -287,8 +288,8 @@ static const struct unicp437 cp437table[] = { { 0x2640, 0x0c, 0x00 }, { 0x2642, 0x0b, 0x00 }, { 0x2660, 0x06, 0x00 }, { 0x2663, 0x05, 0x00 }, { 0x2665, 0x03, 0x01 }, { 0x266a, 0x0d, 0x00 }, - { 0x266c, 0x0e, 0x00 }, { 0x27e8, 0x3c, 0x00 }, - { 0x27e9, 0x3e, 0x00 }, + { 0x266c, 0x0e, 0x00 }, { 0x2713, 0xfb, 0x00 }, + { 0x27e8, 0x3c, 0x00 }, { 0x27e9, 0x3e, 0x00 }, }; static uint8_t |