GNOME Bugzilla – Bug 554945
Gedit takes incorrect Linefeeds through Copy&paste
Last modified: 2009-04-28 08:58:37 UTC
I dont know if this is a bug, as Gedit has neither an option nor states what Linefeeds its supposed to use. Either way, this did already cost me some hours of pain searching why bash behaves VERY odd: Its possible to create a file with varying Linefeeds within Gedit, you can do so by copying text from other applications (maybe even Gedit itself if the file already contains wrong linefeeds) and pasting it into Gedit. You end up with having invisible carriage-returns (0x0D) in the textfile, no way of knowing what just happened unless you use an Hex-Editor. As I dont think a textfile with varying linefeeds can be considered sane I would rate this as serious bug. Some options to fix this issue: * Silently force unix-encoding * Allow setting the type of LF * Warn if a file has inconsistent LF and give the option to correct it.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 103753 ***