[wish] make gedit save files as windows-readable text files

Bug #197028 reported by Savvas Radevic
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Wishlist
gedit (Ubuntu)
Fix Released
Wishlist
Ubuntu Desktop Bugs
gedit-plugins (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Binary package hint: gedit

Ubuntu hardy heron alpha 5
I've noticed that text files written in windows notepad and gedit files aren't compatible due to their different default encodings.
By default, Windows uses ANSI coding.
I would love to have a graphical way to save a text in gedit that can be easily read in Windows Notepad.

I suggest a Character Coding option named either "ANSI" or "Windows" when users go to menu File -> Save as

P.S. I know this can be done using unix2dos or by using replace to change \n to \r\n, but I'm asking this for the sake of easier desktop use :)
P.P.S. This could even be added as a plugin.

Revision history for this message
Thomas Butter (tbutter) wrote :

I think the Windows Encoding depends on the Windows Version and the selected Locale. ANSI is the default in the US in Windows 98, in germany it is iso-8859-15. I think Vista uses utf-8 by default.

You can select each encoding in the Save As... Dialog.

Ralph Janke (txwikinger)
Changed in gedit:
importance: Undecided → Wishlist
Changed in gedit-plugins:
importance: Undecided → Wishlist
Revision history for this message
Sebastien Bacher (seb128) wrote :

did you try using an iso-8859-15 encoding? what is the issue?

Changed in gedit:
assignee: nobody → desktop-bugs
status: New → Incomplete
Revision history for this message
Savvas Radevic (medigeek) wrote : Re: [Bug 197028] Re: [wish] make gedit save files as windows-readable text files

ah, didn't know which encoding to use, and i believe that would
confuse other users as well
the main thing that is bugging me is if i save a file using gedit,
that text is shown in one line only, so i guess it's not the
encoding,but the use of \r\n in windows text files for new lines
There could be a check box in the "Save as" dialog to increase
compatibility with windows operating systems

Revision history for this message
Fred (eldmannen+launchpad) wrote :

Cant it auto-detect the encoding and save the file in the same encoding?

Revision history for this message
Savvas Radevic (medigeek) wrote :

Reassigned to confirmed, no other info asked

Changed in gedit:
status: Incomplete → Confirmed
Changed in gedit-plugins:
status: New → Confirmed
Revision history for this message
Savvas Radevic (medigeek) wrote :

Fred: I suppose so, but let's focus on having it to as an option in the "save as" first

Changed in gedit:
status: Confirmed → Triaged
Changed in gedit-plugins:
status: Confirmed → Triaged
Changed in gedit:
status: Unknown → New
Revision history for this message
shawnlandden (shawnlandden) wrote :

I've had no problem with encoding, only problem i had was that notepad, unlike every other editor does not recognize unix newlines and will just display as one big line. its one of the reasons windows sucks. maybe there should be a option for how to do newlines but a warning should be there that itmay cause problems if used for cetain config etc files so not recommended globally

Changed in gedit:
status: New → Invalid
Changed in gedit:
status: Invalid → Unknown
Changed in gedit:
status: Unknown → Confirmed
Revision history for this message
rCX (rcx) wrote :

I also think this is a good idea. I often use transfer files between Linux and Windows. I switched to Kate (KDE's text editor) because it handles other newlines.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

This is now fixed in Ubuntu 10.04. Thanks for reporting.

Changed in gedit (Ubuntu):
status: Triaged → Fix Released
Changed in gedit-plugins (Ubuntu):
status: Triaged → Invalid
Changed in gedit:
importance: Unknown → Wishlist
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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