public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] locale nightmare
@ 2005-07-28 10:17 Jorge Almeida
  2005-07-28 19:14 ` Zac Medico
  0 siblings, 1 reply; 2+ messages in thread
From: Jorge Almeida @ 2005-07-28 10:17 UTC (permalink / raw
  To: gentoo-user

After much labor, I managed to clean my system (i.e., revdep-rebuild -p
is happy). However, I started having locale problems (which I hadn't
formerly). It shows up with perl and vim.
I want the system to recognize Portuguese accented characters but
otherwise to use English as general language (meaning the language used
in error messages in bash, etc).
I didn't have the file /etc/env.d/02locale (can't imagine why).
 	$ cat /etc/env.d/02locale
 	LANG="en_US.UTF-8"
 	LC_TYPE="pt_PT.UTF-8"
 	LC_MONETARY="pt_PT.UTF-8@euro"
I followed (more or less)
http://gentoo-wiki.com/HOWTO_Create_an_UTF-8_enabled_system
(It says
 	LC_ALL=it_IT.UTF-8
 	LC_MONETARY=it_IT.UTF-8@euro
but isn't this wrong? man locale says LC_ALL overrides LC_*, if I
understood correctly.)
Well, perl is not happy:
$ perl -e ""
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
         LANGUAGE = (unset),
 	LC_ALL = (unset),
 	LC_MONETARY = "pt_PT.UTF-8@euro",
 	LC_TYPE = "pt_PT.UTF-8",
 	LANG = "en_US.ISO-8859-1"
are supported and installed
on your system.
perl: warning: Falling back
to the standard locale ("C")

Writing in vim gives all sorts of silly output.
What to do? Something to emerge? Some kernel config problem?
Why didn't /etc/env.d/02locale exist?
I compiled glibc without the userlocales USE variable, so all locales
should exist...

-- 
Jorge Almeida
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] locale nightmare
  2005-07-28 10:17 [gentoo-user] locale nightmare Jorge Almeida
@ 2005-07-28 19:14 ` Zac Medico
  0 siblings, 0 replies; 2+ messages in thread
From: Zac Medico @ 2005-07-28 19:14 UTC (permalink / raw
  To: gentoo-user

Jorge Almeida wrote:
> After much labor, I managed to clean my system (i.e., revdep-rebuild -p
> is happy). However, I started having locale problems (which I hadn't
> formerly). It shows up with perl and vim.
> I want the system to recognize Portuguese accented characters but
> otherwise to use English as general language (meaning the language used
> in error messages in bash, etc).
> I didn't have the file /etc/env.d/02locale (can't imagine why).
>     $ cat /etc/env.d/02locale
>     LANG="en_US.UTF-8"
>     LC_TYPE="pt_PT.UTF-8"
>     LC_MONETARY="pt_PT.UTF-8@euro"
> I followed (more or less)
> http://gentoo-wiki.com/HOWTO_Create_an_UTF-8_enabled_system
> (It says
>     LC_ALL=it_IT.UTF-8
>     LC_MONETARY=it_IT.UTF-8@euro
> but isn't this wrong? man locale says LC_ALL overrides LC_*, if I
> understood correctly.)
> Well, perl is not happy:
> $ perl -e ""
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>         LANGUAGE = (unset),
>     LC_ALL = (unset),
>     LC_MONETARY = "pt_PT.UTF-8@euro",
>     LC_TYPE = "pt_PT.UTF-8",
>     LANG = "en_US.ISO-8859-1"
> are supported and installed
> on your system.
> perl: warning: Falling back
> to the standard locale ("C")
> 
> Writing in vim gives all sorts of silly output.
> What to do? Something to emerge? Some kernel config problem?
> Why didn't /etc/env.d/02locale exist?
> I compiled glibc without the userlocales USE variable, so all locales
> should exist...
> 

/etc/env.d/02locale doesn't exist by default.  I can see from the perl warning that 02local didn't work for you because it says en_US.ISO-8859-1 instead of en_US.UTF-8.  You need to run env-update && source /etc/profile.

Zac
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-28 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28 10:17 [gentoo-user] locale nightmare Jorge Almeida
2005-07-28 19:14 ` Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox