Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 116460

Summary: less displays lines twice with iso-8859 text files
Product: [Retired] Red Hat Linux Reporter: Bart van Kuik <bart.van.kuik>
Component: lessAssignee: Jindrich Novy <jnovy>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: low Docs Contact:
Priority: medium    
Version: 9CC: pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-08 15:32:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot of RH9 less listing the file
none
Textfile in which the bug occurs. Output of 'file' on this file: "Issue17.txt: ISO-8859 English text, with CRLF line terminators" none

Description Bart van Kuik 2004-02-21 12:46:00 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a)
Gecko/20031015 Firebird/0.7+

Description of problem:
Use the attached text file. In a terminal emulator or on the console,
type 'less Issue17.txt'. Press space, and then press arrow up. The
upper line is shown twice, while it should have been shown only once.


Version-Release number of selected component (if applicable):
less-378-7

How reproducible:
Always

Steps to Reproduce:
1. Save the attached textfile to disk
2. Open the textfile with less: 'less Issue17.txt'
3. Press space or PgDown
4. Press arrow-up.
5. The uppermost line is shown twice
    

Actual Results:  The uppermost line in the screen is shown twice.

Expected Results:  Instead, the line that comes before the uppermost
line should have shown.

Additional info:

Running RH9 with a custom 2.6.1 kernel. Output of uname -a:
$ uname -a
Linux bkuik-nl.nl.oracle.com 2.6.1 #0 Sun Jan 11 08:51:46 CET 2004
i686 i686 i386 GNU/Linux
$ export | grep -i lang
declare -x LANG="en_US.UTF-8"
$ file Issue17.txt
Issue17.txt: ISO-8859 English text, with CRLF line terminators

The bug doesn't occur when typing the following:
$ LESSCHARSET=iso8859 less Issue17.txt

In an email exchange with the upstream author, it was determined that
later versions of less (for example version 381) don't exhibit this
problem, it's RedHat specific.

Comment 1 Bart van Kuik 2004-02-21 12:47:44 UTC
Created attachment 97904 [details]
Screenshot of RH9 less listing the file

Comment 2 Bart van Kuik 2004-02-21 12:48:58 UTC
Created attachment 97905 [details]
Textfile in which the bug occurs. Output of 'file' on this file: "Issue17.txt: ISO-8859 English text, with CRLF line terminators"

Comment 3 Jindrich Novy 2005-09-08 15:32:21 UTC
This is now fixed in the rawhide less.