C locale and error messages

2001-10-10 Thread Neil Booth
If I open an rxvt window or xterm, which for me defaults to LANG=C,
and do

echo < foo

instead of getting

bash: foo: No such file or directory

I get

bash: foo: ??

If I set LANG to en_GB, it doesn't help.  If I set LC_MESSAGES to
en_GB, I then get the proper error message.  If I then unset
LC_MESSAGES, I continue to get a proper error message (so maybe a
caching issue?)

At the Linux console, I get a proper error message regardless.

What is going on here?  I'm using Debian unstable, but this issue has
existed for a long time and is started to annoy me.

Thanks,

Neil.


FWIW a typical "env" when getting the '?' is as follows:

PWD=/home/neil
COLORFGBG=15;0
WINDOWID=35651586
PAGER=jless
HOSTNAME=monkey
LESSCLOSE=/usr/bin/lesspipe '%s' '%s'
LESSOPEN=| /usr/bin/lesspipe '%s'
LV=-Or
LESS=-M
USER=neil
MACHTYPE=i386-pc-linux-gnu
[EMAIL PROTECTED]
EDITOR=vi
LANG=C
COLORTERM=rxvt
DISPLAY=:0.0
SSH_AGENT_PID=9701
SHLVL=1
LOGNAME=neil
PERL_BADLANG=0
SHELL=/bin/bash
HOSTTYPE=i386
OSTYPE=linux-gnu
SSH_AUTH_SOCK=/tmp/ssh-XX0QUFpi/agent.9667
TERM=rxvt
HOME=/home/neil
PATH=/home/neil/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
JLESSCHARSET=latin1
OUTPUT_CHARSET=ISO8859-1
_=/usr/bin/env



Re: C locale

1998-02-24 Thread Carey Evans
Corey Miller <[EMAIL PROTECTED]> writes:

>   I use the tcsh shell, and couldn't find any scripts that could
> possibly be setting LANG to "us". Just to be sure, I manually did 'setenv
> LANG "EN_us"'. However, I still get the error message as follows:

Oops.  That should be "en_US".  Make sure you've got wg15-locale
installed too.

Anyway, being in the US the default locale should work.  Check what
"printenv" says about your environment, and unset any of the locale
variables.  *Something* must be setting them, so try to find out what
it is.

-- 
 Carey Evans  http://home.clear.net.nz/pages/c.evans/

  GNU GPL: "The Source will be with you... always."


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: C locale

1998-02-23 Thread Corey Miller
On 23 Feb 1998, Carey Evans wrote:

> > I recently installed Debian 1.3.1 and keep getting the following
> > errors concerning the C locale. This first one is given whenever I install
> > most debian packages (assumably the ones whose scripts use perl).
> > 
> > perl: warning: Setting locale failed for the categories:
> > LC_CTYPE LC_COLLATE 
> > perl: warning: Please check that your locale settings:
> > LC_ALL = (unset),
> > LC_CTYPE = (unset),
> > LC_COLLATE = (unset),
> > LANG = "us"
> 
> There is no "us" locale.  EN_us is the closest.  One of your startup
> scripts is setting the env. variable LANG incorrectly.
> 
> IIRC StarOffice does this.  Look though /etc/profile, ~/.bash_profile
> and ~/.bashrc, and any scripts that they call.

I use the tcsh shell, and couldn't find any scripts that could
possibly be setting LANG to "us". Just to be sure, I manually did 'setenv
LANG "EN_us"'. However, I still get the error message as follows:

perl: warning: Setting locale failed for the categories:
LC_CTYPE LC_COLLATE 
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_CTYPE = (unset),
    LC_COLLATE = (unset),
LANG = "EN_us"
are supported and installed on your system.
perl: warning: Falling back to the "C" locale.

Thanks for your help,

Corey Miller

--- 
Corey Miller  "This looks like a job for . legal tender!"
MSTie #71940   -The Tick
[EMAIL PROTECTED]
http://www.egr.msu.edu/~mille542/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: C locale

1998-02-23 Thread Carey Evans
Corey Miller <[EMAIL PROTECTED]> writes:

>   I recently installed Debian 1.3.1 and keep getting the following
> errors concerning the C locale. This first one is given whenever I install
> most debian packages (assumably the ones whose scripts use perl).
> 
> perl: warning: Setting locale failed for the categories:
> LC_CTYPE LC_COLLATE 
> perl: warning: Please check that your locale settings:
> LC_ALL = (unset),
> LC_CTYPE = (unset),
> LC_COLLATE = (unset),
> LANG = "us"

There is no "us" locale.  EN_us is the closest.  One of your startup
scripts is setting the env. variable LANG incorrectly.

IIRC StarOffice does this.  Look though /etc/profile, ~/.bash_profile
and ~/.bashrc, and any scripts that they call.

-- 
 Carey Evans  http://home.clear.net.nz/pages/c.evans/

  GNU GPL: "The Source will be with you... always."


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


C locale

1998-02-22 Thread Corey Miller
I recently installed Debian 1.3.1 and keep getting the following
errors concerning the C locale. This first one is given whenever I install
most debian packages (assumably the ones whose scripts use perl).

perl: warning: Setting locale failed for the categories:
LC_CTYPE LC_COLLATE 
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_CTYPE = (unset),
LC_COLLATE = (unset),
LANG = "us"
are supported and installed on your system.
perl: warning: Falling back to the "C" locale.

This one I have been getting whenever I start emacs under X
windows.

Warning: locale not supported by C library, locale unchanged

Any help would be greatly appreciated. Thanks for your time,

Corey Miller

--- 
Corey Miller  "This looks like a job for . legal tender!"
MSTie #71940   -The Tick
[EMAIL PROTECTED]
http://www.egr.msu.edu/~mille542/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .