Re: What ever happen to current locale in Gnome terminal?

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



  On 07/14/2010 01:40 PM, Matthias Clasen wrote:
> On Wed, 2010-07-14 at 09:48 +0000, "Jóhann B. Guðmundsson" wrote:
>> There used to be a setting in Gnome Terminal  ( Terminal -->  Set
>> Character Encoding -->  Available Encoding -->  Current Locale ) what ever
>> happen to it or should I say why was it removed?
>>
>> Bug ?
> "There used to be" is a little too vague.
>
> Have you used it just yesterday, and now its gone, or do you remember it
> from 2002 ? And what version of gnome-terminal are you talking about ?

This happened whenever routine 'terminal-encoding.c' option had been 
commented out of the encoding menu possibilities.
This was done without any comment in the code of the actual reason why 
this had been done or what replaced it functionality.

<snip>

static const struct {
  const char *charset;
  const char *name;
} encodings[] = {
// { "UTF-8", N_("Current Locale") }, <--- !!!!!
  { "ISO-8859-1", N_("Western") },
  { "ISO-8859-2", N_("Central European") },
  { "ISO-8859-3", N_("South European") },

<snip>

This appears to disallow the setting of the terminal encoding depending 
on the locale setting which allows the character encoding to be set from 
the command-line and forces the end user to resort to always having to 
point and click to choose encoding instead of doing for example. . . .

"env LC_CTYPE=is_IS.iso88591 gnome-terminal -e 'slogin host1'"

Which sets the encoding to whatever the locale specifies if 
gnome-terminal 'Character Encoding' is set to 'Current Locale' and in 
this case host1 is using iso88591 charset.

env LC_CTYPE=is_IS.utf8 gnome-terminal -e 'slogin host2' if host2 is 
using utf8.

Or simply be doing 'gnome-terminal --characerencoding=xxxxx' where xxxxx 
is an encoding from the available set.

JBG
-- 
desktop mailing list
desktop@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/desktop



[Index of Archives]     [Fedora Users]     [Fedora KDE]     [Fedora Announce]     [Fedora Docs]     [Fedora Config]     [PAM]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux