gedit cannot automatically recognise document character encoding

Bug #557571 reported by igi
68
This bug affects 10 people
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Wishlist
gedit (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: gedit

In my Ubuntu 10.04 Lucid Lynx beta1 installation, gedit does not automatically select the proper character encoding.
If I try to open a text document created with Windows (ISO 8859-15) the error status bar is shown instead of opening the document. So I have to manually select the original encoding and then the document is opened.

Till Ubuntu 09.10 (Karmic) GEdit worked properly.

---
Architecture: i386
DistroRelease: Ubuntu 11.04
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
Package: gedit 2.30.4-2ubuntu1
PackageArchitecture: i386
ProcEnviron:
 LANGUAGE=it_IT:en
 PATH=(custom, no user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Tags: natty running-unity
Uname: Linux 2.6.38-8-generic-pae i686
UpgradeStatus: Upgraded to natty on 2011-04-29 (3 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
igi (igor-cali) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, could you add an example to the bug?

Changed in gedit (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
igi (igor-cali) wrote :

Here the screenshot attachment.
This is how gedit lloks when I try to open txt files created with Windows (different encoding).
At that point, selecting UTF8 encoding from the drop-down list (the one localized with the label "Riconoscimento automatico), and then clicking on the retry button, the document is properly shown.

This manual selection task has not to be done in Karmic.

Revision history for this message
Sebastien Bacher (seb128) wrote :

sorry if the previous comment was not clear but an example would be a file having the issue not a screenshot

Revision history for this message
igi (igor-cali) wrote :

Wooops, sorry ;>)
Here it is!

Changed in gedit (Ubuntu):
status: Incomplete → Triaged
Changed in gedit:
status: Unknown → New
Changed in gedit:
importance: Unknown → Medium
igi (igor-cali)
tags: added: maverick
Revision history for this message
igi (igor-cali) wrote : Dependencies.txt

apport information

tags: added: apport-collected natty running-unity
description: updated
description: updated
Revision history for this message
Alberto Torres (kungfoobar) wrote :

Also, gedit should open text files even if it can't recognize the encoding. If there is a bogus character in the file, that renders the file unopenable in gedit! The default and frequently the ONLY plaintext editor w/gui in ubuntu!

Revision history for this message
Oliver Joos (oliver-joos) wrote :

I agree that there should be at least an option to "open as ascii-bytes" or something.

@Alberto: If you want your wish to be heard you should open a new bug report about that - preferably on gnome.org directly (if there is not already one). As alternative try the "scite" text editor.

dino99 (9d9)
tags: removed: maverick
tags: removed: natty
Changed in gedit:
importance: Medium → Wishlist
status: New → Confirmed
tags: added: trusty
Changed in gedit:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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