Bug 561089

Summary: editing text file with gedit seriously destroys the file
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: geditAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: mclasen, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-10 09:06:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
original xscreensaver.spec file
none
xscreensaver.spec with edited by gedit
none
strace log none

Description Mamoru TASAKA 2010-02-02 16:55:15 UTC
Description of problem:
Well, as shown in the summary editing text file
with gedit seriously destroys the file...

Version-Release number of selected component (if applicable):
gedit-2.29.5-1.fc13.i686

How reproducible:
Currently 100%

Steps to Reproduce:
1. Download rawhide xscreensaver.spec (from Fedora CVS, for example)
2. open xscreensaver.spec with $ gedit xscreensaver.spec $
3. At the top of gedit window, type return key
4. type Ctrl-S and save the document
  
Actual results:
See the attached.

Expected results:


Additional info:
I did not see this issue yesterday, so this may be due to
some other component.

Comment 1 Mamoru TASAKA 2010-02-02 16:56:14 UTC
Created attachment 388349 [details]
original xscreensaver.spec file

Comment 2 Mamoru TASAKA 2010-02-02 16:56:49 UTC
Created attachment 388350 [details]
xscreensaver.spec with edited by gedit

Comment 3 Mamoru TASAKA 2010-02-08 16:07:39 UTC
2.28.3 does not seem to reproduce this issue.
Still reproducible with 2.29.5

Comment 4 Mamoru TASAKA 2010-02-12 12:42:24 UTC
Still seeing this problem with 2.29.6-1.fc13

Comment 5 Matthias Clasen 2010-02-14 21:50:36 UTC
I cannot reproduce this here.

Comment 6 Mamoru TASAKA 2010-02-15 16:01:20 UTC
Unfortunately still reproducible... with gedit-2.29.6-1.fc13.i686
Not reproducible with gedit-2.28.3-1.fc12.i686

Comment 7 Matthias Clasen 2010-02-27 01:46:34 UTC
I am still not able to reproduce. Anything different on your system, e.g. using a non-UTF-8 locale, or something like that ?

Comment 8 Mamoru TASAKA 2010-02-28 18:46:38 UTC
I am using LANG=ja_JP.UTF-8, however even if I set LANG=C on
uxterm this seems reproducible.

Comment 9 Mamoru TASAKA 2010-02-28 18:51:38 UTC
Created attachment 396893 [details]
strace log

Well, I don't know if this is useful or not, however I will
attach strace log with

- $ script strace.log
- $ strace gedit xscreensaver.spec
- On launched gedit, just
  * type return key
  * type backspace key
  * type ctrl-s
  * type ctrl-q
- $ exit

Comment 10 Bug Zapper 2010-03-15 14:21:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 11 Mamoru TASAKA 2010-03-17 06:21:07 UTC
gedit-2.29.8-2.fc13.i686 still reproduces this issue.

Comment 12 Mamoru TASAKA 2010-04-10 09:06:09 UTC
I tried 2.30.0-1.fc13 for a day and it issue seems no
longer reproducible. Once closing.