Gedit adds extra newlines when a CR/LF pair crosses a 8k boundary
Bug #680391 reported by
Erik Carstensen
This bug report is a duplicate of:
Bug #662051: CR-LFs get duplicated whenever they fall on READ_CHUNK_SIZE boundaries.
Edit
Remove
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.0git201004
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.
To post a comment you must log in.
Confirming in Lucid with the attached file.