Bug 116460 - less displays lines twice with iso-8859 text files
Summary: less displays lines twice with iso-8859 text files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: less
Version: 9
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-21 12:45 UTC by Bart van Kuik
Modified: 2013-07-02 22:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-08 15:32:21 UTC
Embargoed:


Attachments (Terms of Use)
Screenshot of RH9 less listing the file (21.43 KB, image/png)
2004-02-21 12:47 UTC, Bart van Kuik
no flags Details
Textfile in which the bug occurs. Output of 'file' on this file: "Issue17.txt: ISO-8859 English text, with CRLF line terminators" (7.00 KB, text/plain)
2004-02-21 12:48 UTC, Bart van Kuik
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.