Date: Sat, 13 Feb 2010 09:06:05 GMT From: Garrett Cooper <gcooper@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: docs/143869: [PATCH] Incorrect char number for del Message-ID: <201002130906.o1D9651P079318@www.freebsd.org> Resent-Message-ID: <201002130910.o1D9A3Hv017012@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 143869
>Category: docs
>Synopsis: [PATCH] Incorrect char number for del
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 13 09:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Garrett Cooper
>Release: 9-CURRENT
>Organization:
Ironport
>Environment:
FreeBSD optimus.local 9.0-CURRENT FreeBSD 9.0-CURRENT #1: Sat Jan 23 20:43:11 PST 2010 root@optimus.zenmetsuhitotuyaneshita.net:/usr/obj/usr/src/sys/OPTIMUS amd64
>Description:
hexdump(1) and od(1) both state that the humanized conversion character for del is 0xff (255), when the ascii value for DEL is actually 0x7f (127).
The code in conv.c is correct however (from line 169-171):
} else if (*p == 0x7f) {
*pr->cchar = 's';
(void)printf(pr->fmt, "del");
>How-To-Repeat:
n/a
>Fix:
See attached patch.
Patch attached with submission follows:
Index: od.1
===================================================================
--- od.1 (revision 203332)
+++ od.1 (working copy)
@@ -155,7 +155,7 @@
.It "00c FF 00d CR 00e SO 00f SI 010 DLE 011 DC1"
.It "012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB"
.It "018 CAN 019 EM 01a SUB 01b ESC 01c FS 01d GS"
-.It "01e RS 01f US 020 SP 0ff DEL"
+.It "01e RS 01f US 020 SP 07f DEL"
.El
.It Cm c
Characters in the default character set.
Index: hexdump.1
===================================================================
--- hexdump.1 (revision 203332)
+++ hexdump.1 (working copy)
@@ -258,7 +258,7 @@
.It "\&00C\ FF\t00D\ CR\t00E\ SO\t00F\ SI\t010\ DLE\t011\ DC1
.It "\&012\ DC2\t013\ DC3\t014\ DC4\t015\ NAK\t016\ SYN\t017\ ETB
.It "\&018\ CAN\t019\ EM\t01A\ SUB\t01B\ ESC\t01C\ FS\t01D\ GS
-.It "\&01E\ RS\t01F\ US\t0FF\ DEL
+.It "\&01E\ RS\t01F\ US\t07F\ DEL
.El
.El
.Pp
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002130906.o1D9651P079318>
