Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

locales & perl

0 views
Skip to first unread message

s. keeling

unread,
Jan 4, 2004, 9:50:11 PM1/4/04
to
Hi. I've figured out how to supply/generate my chosen locale
(dpkg-reconfigure locales), and now I have:

export LC_ALL="en_CA.ISO-8859-1"
export LANG="en_CA.ISO-8859-1"
export LANGUAGE="en_CA.ISO-8859-1"

in my ~/.bash_profile, but perl doesn't appear to get it:

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


So, How do I:

- fix this so perl knows what to do?

- tell perl to shut up about locales if this can't be fixed?

[Woody 3.0r2, perl5 (revision 5.0 version 6 subversion 1)]

Thanks.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- -


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

s. keeling

unread,
Jan 4, 2004, 10:30:14 PM1/4/04
to
Incoming from s. keeling:

> Hi. I've figured out how to supply/generate my chosen locale
> (dpkg-reconfigure locales), and now I have:
>
> export LC_ALL="en_CA.ISO-8859-1"
> export LANG="en_CA.ISO-8859-1"
> export LANGUAGE="en_CA.ISO-8859-1"
>
> in my ~/.bash_profile, but perl doesn't appear to get it:
>
> perl: warning: Setting locale failed.

As root:

- add your locale to /etc/locale.gen

en_CA ISO-8859-1

- add your locale alias to /etc/locale.alias

en_CA en_CA.ISO-8859-1

- run "locale-gen"

Paul Brossier

unread,
Jan 7, 2004, 12:50:07 AM1/7/04
to
i never had to edit locale.gen, reconfiguring locale does it for me. it
also runs locale-gen.

in local.alias, however, one can read :
# Note: This file is far from being complete. If you have a value for
# your own site which you think might be useful for others too, share
# it with the rest of us. Send it using the `glibcbug' script to
# bu...@gnu.org.

sorry i wanted to reply to the list, not to you.

cheers, piem

On Tue, Jan 06, 2004 at 10:25:04PM -0700, s. keeling wrote:
> Incoming from Paul Brossier:


> >
> > On Mon, 2004-01-05 at 03:23, s. keeling wrote:
> > > Incoming from s. keeling:
> > > > Hi. I've figured out how to supply/generate my chosen locale
> > > > (dpkg-reconfigure locales), and now I have:

> ......^^^^^^^^^^^^^^^^^^^^^^^^^^


> > > >
> > > > export LC_ALL="en_CA.ISO-8859-1"
> > > > export LANG="en_CA.ISO-8859-1"
> > > > export LANGUAGE="en_CA.ISO-8859-1"
> > > >
> > > > in my ~/.bash_profile, but perl doesn't appear to get it:

> .................................^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


> > > >
> > > > perl: warning: Setting locale failed.
> > >
> > > As root:
> > >
> > > - add your locale to /etc/locale.gen
> > >
> > > en_CA ISO-8859-1
> > >
> > > - add your locale alias to /etc/locale.alias
> > >
> > > en_CA en_CA.ISO-8859-1
> > >
> > > - run "locale-gen"
> >

> > or do it with
> > # dpkg-reconfigure locales

0 new messages