CR-LFs get duplicated whenever they fall on READ_CHUNK_SIZE boundaries

Bug #662051 reported by Herp Derp on 2010-10-17
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gedit
Expired
Medium
gedit (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: gedit

Gedit massively screws up files whose lines are terminated by CR-LF (i.e., Windows-style newlines, or 0D 0A in hex). It reads in a file in 8192-byte chunks, and then if a CR-LF combo happens to fall on a boundary so that the CR is on one side and the LF is on the other, then Gedit translates BOTH of them into a newline. The net effect is that quite a few newlines get randomly duplicated here and there in any reasonably long file with Windows-style newlines when you load it.

Time to find a new text editor. I've already wasted several minutes too many discovering Gedit's design flaws and creating a pointless account here.

Thank you for your bug report, I can confirm this with gedit 2.30.3 on Ubuntu 10.10. This bug has been reported to the developers of the software. You can track it and make comments at: https://bugzilla.gnome.org/show_bug.cgi?id=632356

Changed in gedit (Ubuntu):
status: New → Confirmed
Changed in gedit:
importance: Unknown → Medium
status: Unknown → New

The upstream bug has been marked as a duplicate of https://bugzilla.gnome.org/show_bug.cgi?id=631468

Changed in gedit:
importance: Medium → Unknown
status: New → Unknown
Changed in gedit:
importance: Unknown → Medium
status: Unknown → New
Robert Roth (evfool) on 2011-03-10
Changed in gedit (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Vadim Rutkovsky (roignac) wrote :

Possibly, this is a duplicate of bug 616441?

Changed in gedit:
status: New → Confirmed
Changed in gedit:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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