After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 554945 - Gedit takes incorrect Linefeeds through Copy&paste
Gedit takes incorrect Linefeeds through Copy&paste
Status: RESOLVED DUPLICATE of bug 103753
Product: gedit
Classification: Applications
Component: general
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-04 01:04 UTC by Norbert Lange
Modified: 2009-04-28 08:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Norbert Lange 2008-10-04 01:04:40 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.
Comment 1 Alexander Kojevnikov 2009-04-28 08:58:37 UTC
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 ***