[Bug 244791] New: less broken from 394-12(10.1) to 394-32(10.2)
https://bugzilla.novell.com/show_bug.cgi?id=244791 Summary: less broken from 394-12(10.1) to 394-32(10.2) Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse@tlinx.org QAContact: qa@suse.de Have noticed with identical calling args, the less from 10.2 (less-394-32) counts lines incorrectly (appears to be not counting lines that wrap as multiple lines). I installed the version from 10.1 and it functions correctly. All other values (invocation, ENV vars, terminal, file) are identical. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |suse@tlinx.org ------- Comment #1 from judas_iscariote@shorewall.net 2007-02-12 23:43 MST ------- test case needed, otherwise is hard to detect what error are you hitting... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mmarek@novell.com |screening@forge.provo.novell| |.com | Status|NEEDINFO |NEW Info Provider|suse@tlinx.org | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |suse@tlinx.org -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 mmarek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mmarek@novell.com AssignedTo|mmarek@novell.com |anosek@novell.com Status|NEEDINFO |NEW Info Provider|suse@tlinx.org | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 mmarek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |suse@tlinx.org ------- Comment #2 from mmarek@novell.com 2007-02-13 00:13 MST ------- Yes, please attach 1) the file that less fails to show properly 2) exact less command line 3) output of 'printenv | grep LESS' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 ------- Comment #3 from suse@tlinx.org 2007-02-17 16:26 MST ------- Created an attachment (id=119822) --> (https://bugzilla.novell.com/attachment.cgi?id=119822&action=view) sample file containing lines w/more than 80 columns I was able to duplicate this bug with any/every file that had lines greater than 80 characters. I was wondering if before asking for a test case, anyone bothered to try any file with lines>80 characters (assuming in a terminal width of 80 chars); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 suse@tlinx.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|suse@tlinx.org | ------- Comment #4 from suse@tlinx.org 2007-02-17 16:36 MST ------- invocation line: I attached a 20 line file I called "20_120char_lines.txt". My environment for LESS: LESSKEY=/etc/lesskey.bin LESSCHARSET=utf-8 LESS_ADVANCED_PREPROCESSOR=no LESS=-M -X -i -Rr LESSOPEN=lessopen.sh %s LESSCLOSE=lessclose.sh %s %s --- invocation line: less 20_120char_lines.txt ------- I changed my tty window size to rows=21, columns=80; if I run less with the "bad" version, it has a prompt that says: /tmp/20_120char_lines.txt lines 1-20/20 (END) indicating it has displayed all 20 lines of the file. Actually visible are only the last 10 lines. If I reinstall the previous version of less(394-12) from suse10.1, same command in same window now says: /tmp/20_120char_lines.txt lines 1-10/20 50% -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 mmarek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Minor ------- Comment #5 from mmarek@novell.com 2007-02-19 03:00 MST ------- Thanks for the testcase! BTW: The bug doesn't show up without the -r option to less -- do you still wonder why I asked for a testcase? ;-) Lowering severity, because the -r option isn't used by default (and it's IMO not a very good idea to use it, but YMMV). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 ------- Comment #6 from suse@tlinx.org 2007-02-19 14:00 MST ------- Sorry -- should have provided arguments. But it happened with any/every file, so that part didn't seem to matter. I vaguely remember something like this cropping up in the past -- someone decided to not keep track of any lines if "-r" was specified... If you are wanting anything to be displayed from "utf-8" (non-ascii), you need the "-r". I believe this may be a regression -- maybe someone made a mod from an old source? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 anosek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #7 from anosek@novell.com 2007-05-31 07:36 MST ------- I tried the version from 10.1 (less-394), 10.2 (less-394) and also the newest release (less-403). "less -r 20_120char_lines.txt" functions incorrectly "less -R 20_120char_lines.txt" functions correctly "less -Rr 20_120char_lines.txt" functions incorrectly "less -rR 20_120char_lines.txt" functions correctly (!) Notice that the function changes with the ordering of parameters. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 ------- Comment #8 from anosek@novell.com 2007-06-05 02:38 MST ------- Response from Mark Nudelman (author of less): Hi, Unless I'm misunderstanding something, this behavior is documented in the man page: Warning: when the -r option is used, less cannot keep track of the actual appearance of the screen (since this depends on how the screen responds to each type of control character). Thus, various dis- play problems may result, such as long lines being split in the wrong place. Also see the FAQ entry http://www.greenwoodsoftware.com/less/faq.html#dashr Let me know if these items do not address the bug reported. --Mark -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 ------- Comment #9 from anosek@novell.com 2007-06-05 02:50 MST ------- Created an attachment (id=144109) --> (https://bugzilla.novell.com/attachment.cgi?id=144109&action=view) Test case -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791 ------- Comment #10 from anosek@novell.com 2007-06-05 02:56 MST ------- (In reply to comment #8)
Response from Mark Nudelman (author of less):
Mark, thank you for the answer. I added a new attachment based on previous 20_120char_lines.txt file. I numbered the lines. I you try to view this file with 'less -r 20_120char_lines.txt' and smaller xterm window (so that the lines wrap) you will only see lines 11-20. The first ten lines are cut off. Is this the correct behaviour? File 20_120char_lines.txt contains no other control characters than EOL. Thank you -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=244791#c11
Ales Nosek
https://bugzilla.novell.com/show_bug.cgi?id=244791#c12
L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=244791#c13
Ales Nosek
https://bugzilla.novell.com/show_bug.cgi?id=244791#c14
--- Comment #14 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=244791#c15
--- Comment #15 from L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=244791#c16
L. A. Walsh
https://bugzilla.novell.com/show_bug.cgi?id=244791#c17
--- Comment #17 from Ales Nosek
Hi Mark,
I write again. The reporter of the bug submitted a patch which improves the behaviour of -r parameter. I enclose the patch for less-406. Information from the author of the patch are at https://bugzilla.novell.com/show_bug.cgi?id=244791#c16
What do you think about the patch? Could you put it to the next release of less?
Thank you for your answer
Ales
Date: Wed, 08 Aug 2007
From: Mark Nudelman
https://bugzilla.novell.com/show_bug.cgi?id=244791#c18
Ales Nosek
participants (1)
-
bugzilla_noreply@novell.com