util-linux/text-utils
Américo Wang 2c9f0e8e7f hexdump: bug in hexdump when offset == file length
On Thu, Nov 26, 2009 at 03:42:21AM -0500, Mike Smith wrote:
>[mike@laptop ~]$ dd if=/dev/urandom of=testfile bs=1 count=42
>42+0 records in
>42+0 records out
>42 bytes (42 B) copied, 0.000216179 s, 194 kB/s
>[mike@laptop ~]$ hexdump -Cv testfile -s 42
>0000002a  bb b0 ba 50 fe 70 f8 d9  f7 96 36 49 e9 74 c7 bd  |...P.p....6I.t..|
>0000003a  82 cb 19 64 a6 30 53 29  d2 fa 08 e3 f4 26 7f de  |...d.0S).....&..|
>0000004a  bb 2c f2 df 7c a7 8c 6e  66 01                    |.,..|..nf.|
>00000054
>[mike@laptop ~]$ hexdump -Cv testfile -s 43
>0000002a

I think I got where the bug is, it's an off-by-one problem...

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
2009-12-01 13:23:05 +01:00
..
.gitignore build-sys: ignore a bunch of generated files, mostly binaries 2008-04-14 14:08:00 +02:00
LICENSE.pg Imported from util-linux-2.11t tarball. 2006-12-07 00:25:58 +01:00
Makefile.am build-sys: rename to _execdir 2009-07-04 01:23:41 +02:00
README.clear Imported from util-linux-2.11b tarball. 2006-12-07 00:25:46 +01:00
README.col Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
README.pg Imported from util-linux-2.11t tarball. 2006-12-07 00:25:58 +01:00
col.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
col.c col: getwchar() errors shouldn't be hidden 2007-01-30 13:52:48 +01:00
colcrt.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
colcrt.c replace bcopy,bzero,index and rindex 2009-08-17 11:15:59 +02:00
colrm.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
colrm.c build-sys: nls/locale handling in util-linux-ng general 2007-09-19 23:15:21 +02:00
column.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
column.c column: replace errs.h with libc err.h 2007-10-16 12:31:10 +02:00
conv.c Imported from util-linux-2.11o tarball. 2006-12-07 00:25:53 +01:00
display.c hexdump: bug in hexdump when offset == file length 2009-12-01 13:23:05 +01:00
hexdump.1 hexdump.1: erroneous .Nm "" 2009-08-17 12:11:04 +02:00
hexdump.c Imported from util-linux-2.11o tarball. 2006-12-07 00:25:53 +01:00
hexdump.h Imported from util-linux-2.11o tarball. 2006-12-07 00:25:53 +01:00
hexsyntax.c Imported from util-linux-2.11o tarball. 2006-12-07 00:25:53 +01:00
line.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
line.c line: remove deprecated #ident directive 2009-11-20 14:19:03 +01:00
more.1 more.1: formatting 2009-08-17 12:11:12 +02:00
more.c more: limited line buffer length results in corrupted UTF-8 text 2009-11-16 15:52:45 +01:00
od.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
odsyntax.c Imported from util-linux-2.11o tarball. 2006-12-07 00:25:53 +01:00
parse.c replace bcopy,bzero,index and rindex 2009-08-17 11:15:59 +02:00
pg.1 pg.1: formatting 2009-08-17 12:11:12 +02:00
pg.c pg: compiler warning with NLS disabled 2009-07-20 15:23:40 +02:00
rev.1 remove CVS keywords 2008-07-28 11:10:08 +02:00
rev.c rev: use warn() in errs.h 2007-10-25 21:50:59 +02:00
tailf.1 tailf: inotify based reimplementation 2007-12-17 10:06:20 +01:00
tailf.c tailf: fix printf format 2009-11-23 10:14:56 +01:00
ul.1 ul.1: erroneous .SH instead of .Sh 2009-08-17 12:11:04 +02:00
ul.c replace bcopy,bzero,index and rindex 2009-08-17 11:15:59 +02:00

README.pg

README for the "pg" utility for Linux.

The "pg" utility is the historic System V equivalent to BSD's "more". This
is a free clone of it, and it is intended to conform to the SVID 4 as well
as the SUSv2 specification of this command.

Contrasting to the System V implementation, this one filters backspace
formatting sequences while searching, so you can comfortably search in nroff
output like manual pages.

This code uses routines as defined by SUSv2, so a glibc version of 2.1 or
higher is required on Linux. A curses implementation (like ncurses) must
be present as well.

If large files > 2GB are supported by the kernel and the C library, pg is
able to handle them.

Please send comments, bug-reports and especially bug-fixes to
<g-r@bigfoot.de> .

Gunnar Ritter
Freiburg i. Br.
Germany