Re: [gentoo-user] What's wrong with my locales?

2005-06-16 Thread Rafael Fernández López
Maybe you're missing /etc/env.d/02locale, where you must set your LANG,
LANGUAGE and LC_ALL.

Bye.

El mi, 15-06-2005 a las 16:21 +0200, Holly Bostick escribi:
 I've been trying to get my locales straightened out. I want to use
 [EMAIL PROTECTED] (ISO8859-15) as my default encoding. I originally followed
 the Gentoo Localization Guide and defined the following locales in
 /etc/locales/build:
 
 en_us/ISO-8859-1
 en_US.ISO-8859-15/ISO-8859-15
 en_US.UTF-8/UTF-8
 nl_NL/ISO-8859-1
 [EMAIL PROTECTED]/ISO-8859-15
 nl_NL.UTF-8/UTF-8
 
 rebuilt glibc (again) and everything was kinda OK, except that
 
 1) GDM was displaying in English, so clearly some global setting prior
 to loading the user desktop was set to English;
 
 2) random programs, usually when run from a su - terminal, reported
 that the locale was not recognized, and were defaulting to C. This
 continued to occur even after I put
 
 export LANG=[EMAIL PROTECTED]
 
 in root's .bashrc (it had originally been set to en_US something, as an
 additional check against remembering that any given program was being
 run as root and to be careful).
 
 Then I found a how-to on the Wiki:
 http://gentoo-wiki.com/HOWTO_Create_an_UTF-8_enabled_system .
 
 Of course, I didn't so much want UTF8 as I did ISO8859-15 (I've not
 found UTF, which I used previously, all it's cracked up to be, frankly,
 as the relative lack of applications that support it as opposed to the
 ISO8859 encodings seemed to cause the stated benefits to evaporate).
 
 But what I did find in the wiki article was this new (to me) information:
 
 Now you should create /etc/env.d/02locale file, specifying the locales
 to use. You can add one or two different values usually, but for
 european countries with euro currency you need to add a third.
 
  LANG=it_IT.UTF-8
  LC_ALL=it_IT.UTF-8
 
 I didn't have an /etc/env.d/02locale file, so I created one:
 
 LANG=nl_NL.ISO-8859-15
 LC_ALL=nl_NL.ISO-8859-15
 
 So now, GDM says Welkom bij (hostname) instead of Welcome to
 $(hostname), and the buttons on the side say things like Taal instead
 of Language. So I've done something right. But I've also done
 something wrong:
 
 emerge -av splashutils splash-themes-livecd splash-themes-gentoo
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = nl_NL.ISO-8859-15,
   LANG = [EMAIL PROTECTED]
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 
 
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = nl_NL.ISO-8859-15,
   LANG = nl_NL.ISO-8859-15
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = nl_NL.ISO-8859-15,
   LANG = nl_NL.ISO-8859-15
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 
 $LANGUAGE ? Where am I supposed to set that? And what's the syntax? Perl
 seems to be the only one upset by this; why? And where do I set the
 actual locale, since none of all of these settings seem to be what the
 system (or Perl) is looking for?
 
 It's not a crisis (everything seems to be working nonetheless), but I
 would like to straighten this out (even if it means going to UTF8).
 
 Thanks for any help,
 
 Holly

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] What's wrong with my locales?

2005-06-15 Thread Holly Bostick
I've been trying to get my locales straightened out. I want to use
[EMAIL PROTECTED] (ISO8859-15) as my default encoding. I originally followed
the Gentoo Localization Guide and defined the following locales in
/etc/locales/build:

en_us/ISO-8859-1
en_US.ISO-8859-15/ISO-8859-15
en_US.UTF-8/UTF-8
nl_NL/ISO-8859-1
[EMAIL PROTECTED]/ISO-8859-15
nl_NL.UTF-8/UTF-8

rebuilt glibc (again) and everything was kinda OK, except that

1) GDM was displaying in English, so clearly some global setting prior
to loading the user desktop was set to English;

2) random programs, usually when run from a su - terminal, reported
that the locale was not recognized, and were defaulting to C. This
continued to occur even after I put

export LANG=[EMAIL PROTECTED]

in root's .bashrc (it had originally been set to en_US something, as an
additional check against remembering that any given program was being
run as root and to be careful).

Then I found a how-to on the Wiki:
http://gentoo-wiki.com/HOWTO_Create_an_UTF-8_enabled_system .

Of course, I didn't so much want UTF8 as I did ISO8859-15 (I've not
found UTF, which I used previously, all it's cracked up to be, frankly,
as the relative lack of applications that support it as opposed to the
ISO8859 encodings seemed to cause the stated benefits to evaporate).

But what I did find in the wiki article was this new (to me) information:

Now you should create /etc/env.d/02locale file, specifying the locales
to use. You can add one or two different values usually, but for
european countries with euro currency you need to add a third.

 LANG=it_IT.UTF-8
 LC_ALL=it_IT.UTF-8

I didn't have an /etc/env.d/02locale file, so I created one:

LANG=nl_NL.ISO-8859-15
LC_ALL=nl_NL.ISO-8859-15

So now, GDM says Welkom bij (hostname) instead of Welcome to
$(hostname), and the buttons on the side say things like Taal instead
of Language. So I've done something right. But I've also done
something wrong:

emerge -av splashutils splash-themes-livecd splash-themes-gentoo
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = nl_NL.ISO-8859-15,
LANG = [EMAIL PROTECTED]
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).


perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = nl_NL.ISO-8859-15,
LANG = nl_NL.ISO-8859-15
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = nl_NL.ISO-8859-15,
LANG = nl_NL.ISO-8859-15
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).

$LANGUAGE ? Where am I supposed to set that? And what's the syntax? Perl
seems to be the only one upset by this; why? And where do I set the
actual locale, since none of all of these settings seem to be what the
system (or Perl) is looking for?

It's not a crisis (everything seems to be working nonetheless), but I
would like to straighten this out (even if it means going to UTF8).

Thanks for any help,

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



Re: [gentoo-user] What's wrong with my locales?

2005-06-15 Thread Yangwenpeng
Hi
My mother language isn Chinese, but i can use my mother language in the 
GUI programms, my locales.build file is this:

en_US/ISO-8859-1
en_US.UTF-8/UTF-8
zh_CN/GBK
zh_CN/GB2312
zh_CN.UTF-8/UTF-8

In the GUI, I set the locale encoding as my mother language, I write my
.xinitrc in my home directory like this:

C=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK
export LC_ALL=zh_CN.GBK
export XMODIFIERS=@im=fcitx
fcitx 
xcompmgr 
fvwm

I think you should set the encoding what you want in your .xinitrc file

My mother language is not English, I hope you can understand what I said 
Hope it helps
On 16:21 Wed 15 Jun, Holly Bostick wrote:
 I've been trying to get my locales straightened out. I want to use
 [EMAIL PROTECTED] (ISO8859-15) as my default encoding. I originally followed
 the Gentoo Localization Guide and defined the following locales in
 /etc/locales/build:
 
 en_us/ISO-8859-1
 en_US.ISO-8859-15/ISO-8859-15
 en_US.UTF-8/UTF-8
 nl_NL/ISO-8859-1
 [EMAIL PROTECTED]/ISO-8859-15
 nl_NL.UTF-8/UTF-8
 
 rebuilt glibc (again) and everything was kinda OK, except that
 
 1) GDM was displaying in English, so clearly some global setting prior
 to loading the user desktop was set to English;
 
 2) random programs, usually when run from a su - terminal, reported
 that the locale was not recognized, and were defaulting to C. This
 continued to occur even after I put
 
 export LANG=[EMAIL PROTECTED]
 
 in root's .bashrc (it had originally been set to en_US something, as an
 additional check against remembering that any given program was being
 run as root and to be careful).
 
 Then I found a how-to on the Wiki:
 http://gentoo-wiki.com/HOWTO_Create_an_UTF-8_enabled_system .
 
 Of course, I didn't so much want UTF8 as I did ISO8859-15 (I've not
 found UTF, which I used previously, all it's cracked up to be, frankly,
 as the relative lack of applications that support it as opposed to the
 ISO8859 encodings seemed to cause the stated benefits to evaporate).
 
 But what I did find in the wiki article was this new (to me) information:
 
 Now you should create /etc/env.d/02locale file, specifying the locales
 to use. You can add one or two different values usually, but for
 european countries with euro currency you need to add a third.
 
  LANG=it_IT.UTF-8
  LC_ALL=it_IT.UTF-8
 
 I didn't have an /etc/env.d/02locale file, so I created one:
 
 LANG=nl_NL.ISO-8859-15
 LC_ALL=nl_NL.ISO-8859-15
 
 So now, GDM says Welkom bij (hostname) instead of Welcome to
 $(hostname), and the buttons on the side say things like Taal instead
 of Language. So I've done something right. But I've also done
 something wrong:
 
 emerge -av splashutils splash-themes-livecd splash-themes-gentoo
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = nl_NL.ISO-8859-15,
   LANG = [EMAIL PROTECTED]
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 
 
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = nl_NL.ISO-8859-15,
   LANG = nl_NL.ISO-8859-15
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = nl_NL.ISO-8859-15,
   LANG = nl_NL.ISO-8859-15
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 
 $LANGUAGE ? Where am I supposed to set that? And what's the syntax? Perl
 seems to be the only one upset by this; why? And where do I set the
 actual locale, since none of all of these settings seem to be what the
 system (or Perl) is looking for?
 
 It's not a crisis (everything seems to be working nonetheless), but I
 would like to straighten this out (even if it means going to UTF8).
 
 Thanks for any help,
 
 Holly
 -- 
 gentoo-user@gentoo.org mailing list
 


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] What's wrong with my locales?

2005-06-15 Thread Zac Medico
Holly Bostick wrote:
 I've been trying to get my locales straightened out. I want to use
 [EMAIL PROTECTED] (ISO8859-15) as my default encoding. I originally followed
 the Gentoo Localization Guide and defined the following locales in
 /etc/locales/build:
 
 en_us/ISO-8859-1
 en_US.ISO-8859-15/ISO-8859-15
 en_US.UTF-8/UTF-8
 nl_NL/ISO-8859-1
 [EMAIL PROTECTED]/ISO-8859-15
 nl_NL.UTF-8/UTF-8
 
 rebuilt glibc (again) and everything was kinda OK, except that
 
snip
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
   LANGUAGE = (unset),
   LC_ALL = nl_NL.ISO-8859-15,
   LANG = nl_NL.ISO-8859-15
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 
 $LANGUAGE ? Where am I supposed to set that? And what's the syntax? Perl
 seems to be the only one upset by this; why? And where do I set the
 actual locale, since none of all of these settings seem to be what the
 system (or Perl) is looking for?
 
 It's not a crisis (everything seems to be working nonetheless), but I
 would like to straighten this out (even if it means going to UTF8).
 
 Thanks for any help,
 
 Holly

On my system it is /etc/locales.build rather than /etc/locales/build (probably 
just a typo in the email).  Have you tried to rebuild the definitions with 
localedef?

localedef -v -c -i nl_NL -f ISO-8859-15 nl_NL.ISO-8859-15

After that run perl -v and hopefully you won't get Setting locale failed 
anymore.

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



Re: [gentoo-user] What's wrong with my locales?

2005-06-15 Thread Holly Bostick
Zac Medico schreef:
 Holly Bostick wrote:
 
I've been trying to get my locales straightened out. I want to use
[EMAIL PROTECTED] (ISO8859-15) as my default encoding. I originally followed
the Gentoo Localization Guide and defined the following locales in
/etc/locales/build:

en_us/ISO-8859-1
en_US.ISO-8859-15/ISO-8859-15
en_US.UTF-8/UTF-8
nl_NL/ISO-8859-1
[EMAIL PROTECTED]/ISO-8859-15
nl_NL.UTF-8/UTF-8

rebuilt glibc (again) and everything was kinda OK, except that

 
 snip
 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
  LANGUAGE = (unset),
  LC_ALL = nl_NL.ISO-8859-15,
  LANG = nl_NL.ISO-8859-15
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).

$LANGUAGE ? Where am I supposed to set that? And what's the syntax? Perl
seems to be the only one upset by this; why? And where do I set the
actual locale, since none of all of these settings seem to be what the
system (or Perl) is looking for?

It's not a crisis (everything seems to be working nonetheless), but I
would like to straighten this out (even if it means going to UTF8).

Thanks for any help,

Holly
 
 
 On my system it is /etc/locales.build rather than /etc/locales/build 
 (probably just a typo in the email).  Have you tried to rebuild the 
 definitions with localedef?
 
 localedef -v -c -i nl_NL -f ISO-8859-15 nl_NL.ISO-8859-15
 
 After that run perl -v and hopefully you won't get Setting locale failed 
 anymore.
 
 Zac

Thank you, Zac, that seems to have fixed it. Is there anything else I
need to do-- is this just a bandaid over a critical wound, or can I
trust the system to heal fully and unscarred on its own?

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



Re: [gentoo-user] What's wrong with my locales?

2005-06-15 Thread Holly Bostick
Yangwenpeng schreef:
 Hi
 My mother language isn Chinese, but i can use my mother language in the 
 GUI programms, my locales.build file is this:
 
 en_US/ISO-8859-1
 en_US.UTF-8/UTF-8
 zh_CN/GBK
 zh_CN/GB2312
 zh_CN.UTF-8/UTF-8
 
 In the GUI, I set the locale encoding as my mother language, I write my
 .xinitrc in my home directory like this:
 
 C=zh_CN.GBK
 export LC_CTYPE=zh_CN.GBK
 export LC_ALL=zh_CN.GBK
 export XMODIFIERS=@im=fcitx
 fcitx 
 xcompmgr 
 fvwm
 
 I think you should set the encoding what you want in your .xinitrc file
 
 My mother language is not English, I hope you can understand what I said 
 Hope it helps
 On 16:21 Wed 15 Jun, Holly Bostick wrote:
 
Thank you also, the only problem is that I don't actually have an
~/.xinitrc, and would have to do some research in order to create one.
The fact that I seem to be mostly OK without one also makes me more
nervous about creating one. I seem to have the obvious symptoms fixed by
Zac's suggestion, but I'll keep your post in reserve; all example
formats of important configuration files are useful in my book :-) .

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



Re: [gentoo-user] What's wrong with my locales?

2005-06-15 Thread Zac Medico
Holly Bostick wrote:
 Zac Medico schreef:
 
Holly Bostick wrote:


I've been trying to get my locales straightened out. I want to use
[EMAIL PROTECTED] (ISO8859-15) as my default encoding. I originally followed
the Gentoo Localization Guide and defined the following locales in
/etc/locales/build:

en_us/ISO-8859-1
en_US.ISO-8859-15/ISO-8859-15
en_US.UTF-8/UTF-8
nl_NL/ISO-8859-1
[EMAIL PROTECTED]/ISO-8859-15
nl_NL.UTF-8/UTF-8

rebuilt glibc (again) and everything was kinda OK, except that

snip

On my system it is /etc/locales.build rather than /etc/locales/build 
(probably just a typo in the email).  Have you tried to rebuild the 
definitions with localedef?

localedef -v -c -i nl_NL -f ISO-8859-15 nl_NL.ISO-8859-15

After that run perl -v and hopefully you won't get Setting locale failed 
anymore.

Zac
 
 
 Thank you, Zac, that seems to have fixed it. Is there anything else I
 need to do-- is this just a bandaid over a critical wound, or can I
 trust the system to heal fully and unscarred on its own?
 
 Holly

Looking again at your /etc/locales.build I noticed that you need to add:

nl_NL.ISO-8859-15/ISO-8859-15

That would be analogous to en_US.UTF-8/UTF-8 which works for me when I build 
glibc.

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