Re: [Partially solved] Re: Locale errors

2009-04-14 Thread Florian Kulzer
On Tue, Apr 14, 2009 at 13:35:09 -0400, Celejar wrote: > On Tue, 14 Apr 2009 18:56:43 +0200 Florian Kulzer wrote: > > On Tue, Apr 14, 2009 at 12:38:56 -0400, Celejar wrote: > > > On Mon, 13 Apr 2009 08:40:04 +0100 Bob Cox wrote: > > > > [...] > > > > > > Just a thought: you have anything in /etc/

Re: [Partially solved] Re: Locale errors

2009-04-14 Thread Celejar
On Tue, 14 Apr 2009 18:56:43 +0200 Florian Kulzer wrote: > On Tue, Apr 14, 2009 at 12:38:56 -0400, Celejar wrote: > > On Mon, 13 Apr 2009 08:40:04 +0100 Bob Cox wrote: > > [...] > > > > Just a thought: you have anything in /etc/environment ? > > > > Very interesting; my /etc/environment contai

Re: [Partially solved] Re: Locale errors

2009-04-14 Thread Florian Kulzer
On Tue, Apr 14, 2009 at 12:38:56 -0400, Celejar wrote: > On Mon, 13 Apr 2009 08:40:04 +0100 Bob Cox wrote: [...] > > Just a thought: you have anything in /etc/environment ? > > Very interesting; my /etc/environment contains: > > LANG="en_US.UTF-8" > > [I have no idea how that got there; I'm pr

Re: [Partially solved] Re: Locale errors

2009-04-14 Thread Celejar
On Mon, 13 Apr 2009 13:10:54 +0200 Vincent Lefevre wrote: > On 2009-04-12 23:14:52 -0400, Celejar wrote: > > And here we have the problem! I noticed that when I log in as root > > directly, either to a getty or via 'su', then I don't see the problem. > > It only appears in root shells obtained w

Re: [Partially solved] Re: Locale errors

2009-04-14 Thread Celejar
On Mon, 13 Apr 2009 08:40:04 +0100 Bob Cox wrote: > On Sun, Apr 12, 2009 at 20:24:27 -0700, Kelly Clowers > (kelly.clow...@gmail.com) wrote: > > > On Sun, Apr 12, 2009 at 20:14, Celejar wrote: > > > > > > > > > So you seem to be correct; for some reason, in the sudo shell, the LC* > > > va

Re: [Partially solved] Re: Locale errors

2009-04-14 Thread Vincent Lefevre
On 2009-04-14 09:45:18 +0200, Vincent Lefevre wrote: > If you replace LANG="C" by LANG=C in /etc/environment, can you still > observe the same problem? In fact, it seems that pam_env (used by "sudo -i") assumes that double-quotes are part of the value, hence the problem. See https://bugs.launch

Re: [Partially solved] Re: Locale errors

2009-04-14 Thread Vincent Lefevre
On 2009-04-13 19:21:23 -0400, Rick Thomas wrote: > The problem is that if I remove the lines setting LANG and LANGUAGE from > /root/.bashrc > I get the following when I enter superuser via "sudo -i" ... > >> rbtho...@greybox:~$ sudo -i >> greybox:~# locale >> locale: Cannot set LC_CTYPE to default

Re: [Partially solved] Re: Locale errors

2009-04-13 Thread Rick Thomas
On Apr 13, 2009, at 6:39 PM, Vincent Lefevre wrote: On 2009-04-13 15:14:36 -0400, Rick Thomas wrote: rbtho...@greybox:~$ locale LANG=C LANGUAGE=C LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_M

Re: [Partially solved] Re: Locale errors

2009-04-13 Thread Vincent Lefevre
On 2009-04-13 15:14:36 -0400, Rick Thomas wrote: > rbtho...@greybox:~$ locale > LANG=C > LANGUAGE=C > LC_CTYPE="C" > LC_NUMERIC="C" > LC_TIME="C" > LC_COLLATE="C" > LC_MONETARY="C" > LC_MESSAGES="C" > LC_PAPER="C" > LC_NAME="C" > LC_ADDRESS="C" > LC_TELEPHONE="C" > LC_MEASUREMENT="C" > LC_IDENTIFIC

Re: [Partially solved] Re: Locale errors

2009-04-13 Thread Rick Thomas
On Apr 13, 2009, at 3:40 AM, Bob Cox wrote: On Sun, Apr 12, 2009 at 20:24:27 -0700, Kelly Clowers (kelly.clow...@gmail.com ) wrote: On Sun, Apr 12, 2009 at 20:14, Celejar wrote: So you seem to be correct; for some reason, in the sudo shell, the LC* variables are getting extra quotes.

Re: [Partially solved] Re: Locale errors

2009-04-13 Thread Vincent Lefevre
On 2009-04-12 23:14:52 -0400, Celejar wrote: > And here we have the problem! I noticed that when I log in as root > directly, either to a getty or via 'su', then I don't see the problem. > It only appears in root shells obtained with 'sudo -i'. 'locale' in > the latter case gives: > > ~# locale

Re: [Partially solved] Re: Locale errors

2009-04-13 Thread Vincent Lefevre
I don't know if this is directly related, but I've just reported the following bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523882 sudo -i doesn't unset some environment variables -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog:

Re: [Partially solved] Re: Locale errors

2009-04-13 Thread Vincent Lefevre
On 2009-04-13 01:07:44 -0400, Rick Thomas wrote: > I ran into this too. Same problem -- extra set of quotes in the > environment variables after doing "sudo -i" . I don't have this problem. Note that my files /etc/environment and /etc/default/locale are empty, and /root/.bashrc and /root/.pro

Re: [Partially solved] Re: Locale errors

2009-04-13 Thread Bob Cox
On Sun, Apr 12, 2009 at 20:24:27 -0700, Kelly Clowers (kelly.clow...@gmail.com) wrote: > On Sun, Apr 12, 2009 at 20:14, Celejar wrote: > > > > > So you seem to be correct; for some reason, in the sudo shell, the LC* > > variables are getting extra quotes.  Any idea why?  [There's nothing > >

Re: [Partially solved] Re: Locale errors

2009-04-12 Thread Rick Thomas
I ran into this too. Same problem -- extra set of quotes in the environment variables after doing "sudo -i" . I put LANG=C LANGUAGE=C export LANG export LANGUAGE at the end of /root/.bashrc and the problem went away. But now that two of us have seen it, I think there's a bug in "sudo

Re: [Partially solved] Re: Locale errors

2009-04-12 Thread Kelly Clowers
On Sun, Apr 12, 2009 at 20:14, Celejar wrote: > So you seem to be correct; for some reason, in the sudo shell, the LC* > variables are getting extra quotes.  Any idea why?  [There's nothing > that looks interesting in root's '.bashrc'; it's basically empty.] Something to do with the preservati