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 407659 - Autodetect encodings from open dialog list
Autodetect encodings from open dialog list
Status: RESOLVED DUPLICATE of bug 730622
Product: gedit
Classification: Applications
Component: general
git master
Other Linux
: Normal minor
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 529318 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-02-13 22:45 UTC by Nickolay V. Shmyrev
Modified: 2014-08-11 20:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nickolay V. Shmyrev 2007-02-13 22:45:09 UTC
I have no idea why and havent found appropriate bug. There are two keys that control encodings:

 auto_detected = [UTF-8,CURRENT,ISO-8859-15,UTF-16]
 shown_in_menu = [WINDOWS-1251,KOI8R,CP866]

shouldn't they be the same single key? It seems natural for me to autodetect exactly the same encodings shown in open dialog dropdown menu.
Comment 1 Paolo Borelli 2007-02-14 17:45:37 UTC
dunno... if a encoding gets autodetected why would I want to manually set it in the filechooser.

The "auto_detected" is mostly there so that the translator can customize the default encodings tried in their locale...

On the other hand I see your point: the filechooser would then become the UI to customize the encodings automatically tried when double clicking on a file.

A potential problem is that the list specified in shown_in_menu could grow big and that would make opening a file slow.


Gotta think more about this. Opinions and argumentations one way or the other are welcome :)
Comment 2 Nickolay V. Shmyrev 2007-02-16 00:11:45 UTC
The problem I've meet - I was trying to find why autodetect doesn't recognize encoding. I did add it to the combo in filechooser but it didn't change anything. Only then I've discovered gconf key. 

Second thing - grep in po files - how many locales have the same list as default values for two keys 

Enough brainstorming for today :)
Comment 3 Pavel Šefránek 2008-04-25 20:56:49 UTC
*** Bug 529318 has been marked as a duplicate of this bug. ***
Comment 4 Sébastien Wilmet 2014-08-11 20:39:07 UTC
Bug #730622 contains more details.

*** This bug has been marked as a duplicate of bug 730622 ***