Public bug reported:

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.

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: boundary chunk cr duplication lf newline size

-- 
CR-LFs get duplicated whenever they fall on READ_CHUNK_SIZE boundaries
https://bugs.launchpad.net/bugs/662051
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to