* Jakson A. Aquino <[EMAIL PROTECTED]> [2006-06-20 19:00]:

> I manually configured my system to UTF-8, and I'm not a expert in this
> issue. Probably I put something in a configuration file that isn't
> standard in Linux systems configured to UTF-8, but I don't know what I
> did wrong/different. Anyway, your correction to conjugue is working
> fine here as long as I either set my locale to *.UTF-8 or do not set
> it.

I think that I understand what is going on.  The default locale in your
system should be en_US.UTF-8.  In this case, the default charmap for you
should be UTF-8.  When you do:

    export LANG=pt_BR
    
Then the system will pick the locale pt_BR.UTF-8, inheriting the charmap
from the default.

At any event, I found the way to know which is the current charmap in a
system:

    locale charmap
    
Here is an example:

    $ export LC_CTYPE=en_US.ISO-8859-1
    $ export LANG=pt_BR
    $ locale charmap
    ISO-8859-1
    $ export LC_CTYPE=en_US.UTF-8
    $ locale charmap    
    UTF-8

Could you please try the modified conjugue script below:

#!/usr/bin/perl -w
my $encoding = (my @lines = `locale charmap`)[-1];
chomp $encoding;
my $script = "/usr/bin/conjugue-$encoding";
if (-f $script) {
  system ($script, @ARGV);
} else {
  die "Current locale charmap `$encoding' is unknown to conjugue.\n"
    . "Accepted charmaps are UTF-8 and ISO-8859-1.\n";
}


-- 
Rafael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to