From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (X11; U; NetBSD 1.4.2 i386)
Description of problem:
Running less with the -N option only indents lines with 2 spaces, without
any line numbers prepended.
Steps to Reproduce:
1. Run /usr/bin/less -N /etc/hosts
Actual Results: Contents of /etc/hosts are printed with 2 spaces prended
on each line:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 rebecca localhost.localdomain localhost
Expected Results: file should have been printed out with line number
1 # Do not remove the following line, or various programs
2 # that require network functionality will fail.
3 127.0.0.1 rebecca localhost.localdomain localhost
I don't have RH 7.1.
This bug is not present on my RH 7.0 box. It is present on the Roswell beta
The i18n patch is botching up line numbers. This patch will fix that:
--- less-358/line.c Tue Sep 25 13:44:44 2001
+++ less-358_/line.c Tue Sep 25 13:47:40 2001
@@ -153,8 +153,10 @@
sprintf(&linebuf[curr], "%*d", LINENUM_WIDTH, lno);
column += LINENUM_WIDTH;
for (i = 0; i < LINENUM_WIDTH; i++)
charset[curr] = ASCII;
attr[curr++] = AT_NORMAL;
* Append enough spaces to bring us to the lmargin.
Thanks for the report and the fix !