Gedit adds extra newlines when a CR/LF pair crosses a 8k boundary

Bug #680391 reported by Erik Carstensen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gedit

When opening a file where a CR/LF pair occurs across an 8k boundary (i.e., the CR is on character 0x2000 * n -1 and the LF is on character 0x2000 * n), then gedit reads it as two newlines.

Using standard lucid gedit:
Architecture: amd64
Version: 2.30.0git20100413-0ubuntu1

The attached file is an example of this. It contains 64 characters wide CR/LF lines, and each line ending crosses a 64-byte boundary. When opening the file in gedit, Every 32rd line ending is split in two.

Tags: lucid
Revision history for this message
Erik Carstensen (sandberg) wrote :
Revision history for this message
papukaija (papukaija) wrote :

Confirming in Lucid with the attached file.

Changed in gedit (Ubuntu):
status: New → Confirmed
summary: - gedit adds extra newlines when a CR/LF pair crosses a 8k boundary
+ Gedit adds extra newlines when a CR/LF pair crosses a 8k boundary
tags: added: lucid
Revision history for this message
Robert Roth (evfool) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #662051, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.