Re: [gedit-list] How to change default encoding when saving?



On Sat, 2005-12-02 at 15:30 +0100, Paolo Maggi wrote:
> Hi, 
> > > Which is your default locale? (run 'locale' to get it)
> > > IIRC, the default locale should be the default one.
> > Nope, it's not the default. UTF-8 is always there and we tried to strace
> > the configs, rpm -ql gedit2 and grep thru whole gedit. The option to
> > choose the default should definately be there, the editor is nice, but
> > since it's too early for UTF-8 everywhere we need to use our locale.
> 
> You are right.
> But I'm not sure we need an option to select the default enconding.
> I see 3 possible solutions:
> 1. remember the last encoding chosen by the user 

Under what circumstances did the user choose the encoding, during file
save?

> 2. adding a gconf key to configure the default encoding (but not a
> user visible preference)

IMO we should read the default encoding at startup, if its in a GConf
key, then what happens if the environment variable and key get out of
sync? The only case is where a user might want a different default
encoding than the rest of the system, in that case, if such a user
really exists we can give them an override GConf key?

We should have one point of configuration at the local level. If
specific overrides are needed (I'm not sure they are yet), then we'll
make a GConf key.

> 3. always use the current encoding as default (while saving).

IMO this should already be the case, but its really a bug for the file
chooser isn't it?

> 
> What do you think?

Does gedit use UTF-8 in all cases internally (in memory), then convert
at save-time? Or does it try to use a certain encoding as soon as it
knows about it? If it only converts at save-time, then 3 only is
necessary.

> 
> Please, file a bug report against gedit in bugzilla.gnome.org and add
> a reference to this thread (you get the URL in the ML archive).
> 
> Regards, 
> Paolo  

Cheers,
Ryan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]