Re: BASH ignores language for command completion

2010-07-15 Thread Bruce Korb
Hi Greg, On Thu, Jul 15, 2010 at 8:42 AM, Greg Wooledge wrote: > On Thu, Jul 15, 2010 at 08:06:20AM -0700, Bruce Korb wrote: >> So, for future reference, put this in my bashrc? >> >> eval $(locale | sed 's/=.*/=C/;s/^/export /') > > Gah!  That's ludicrous. That, actually, is part of my point: T

Re: BASH ignores language for command completion

2010-07-15 Thread Greg Wooledge
On Thu, Jul 15, 2010 at 08:06:20AM -0700, Bruce Korb wrote: > So, for future reference, put this in my bashrc? > > eval $(locale | sed 's/=.*/=C/;s/^/export /') Gah! That's ludicrous. If something is setting LC_* variables you don't want, track it down and stop it from doing so. Don't write gh

Re: BASH ignores language for command completion

2010-07-15 Thread Chet Ramey
On 7/15/10 11:06 AM, Bruce Korb wrote: >>> No, you need to set LC_ALL=C, because LANG has the lowest priority. >> >> That's true enough, but Bruce said he already removed all the LC_ >> variables from his environment, so LANG should work. > > "It's too hard." :) > >> $ locale >> LANG= >> LC_CTY

Re: BASH ignores language for command completion

2010-07-15 Thread Bruce Korb
On Thu, Jul 15, 2010 at 5:36 AM, Chet Ramey wrote: > On 7/15/10 8:19 AM, Andreas Schwab wrote: >> Chet Ramey writes: >> >>> If en_US happens to be the system's default locale, of course.  You >>> can only be sure that you'll get ASCII sorting order if you set >>> LANG=C. >> >> No, you need to set

Re: BASH ignores language for command completion

2010-07-15 Thread Chet Ramey
On 7/15/10 8:19 AM, Andreas Schwab wrote: > Chet Ramey writes: > >> If en_US happens to be the system's default locale, of course. You >> can only be sure that you'll get ASCII sorting order if you set >> LANG=C. > > No, you need to set LC_ALL=C, because LANG has the lowest priority. That's tr

Re: BASH ignores language for command completion

2010-07-15 Thread Andreas Schwab
Chet Ramey writes: > If en_US happens to be the system's default locale, of course. You > can only be sure that you'll get ASCII sorting order if you set > LANG=C. No, you need to set LC_ALL=C, because LANG has the lowest priority. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fi

Re: BASH ignores language for command completion

2010-07-15 Thread Chet Ramey
> I've stripped all LC_* variables plus LANG from my environment: > > > $ env|fgrep LANG > > $ env|fgrep LC_ > > $ > > Command completion still used "EN_us" for sorting directories > in command completion. e.g.: If en_US happens to be the system's default locale, of course. You can only be sur

Re: BASH ignores language for command completion

2010-07-14 Thread Clark J. Wang
On Wed, Jul 14, 2010 at 10:29 PM, Bruce Korb wrote: > I've stripped all LC_* variables plus LANG from my environment: > > > $ env|fgrep LANG > > $ env|fgrep LC_ > > $ > > My understanding: For most time the language/locale is not set through LC_* vars although LC_* vars can override the default l

BASH ignores language for command completion

2010-07-14 Thread Bruce Korb
I've stripped all LC_* variables plus LANG from my environment: > $ env|fgrep LANG > $ env|fgrep LC_ > $ Command completion still used "EN_us" for sorting directories in command completion. e.g.: $ cd .adobe/ .gtkrc-1.2-gnome2.profile .altera.quartus/ .hist/