Re: [gentoo-user] setting locale

2011-05-31 Thread Mick
On Tuesday 31 May 2011 16:44:25 William Hubbs wrote: > On Tue, May 31, 2011 at 07:19:16AM -0400, David Relson wrote: > > Why not use "echo >> ..." ?? > > > > Since the ">>" does an append, the original file contents are still > > available for reference. > > > > Since the added line is at the end

Re: [gentoo-user] setting locale

2011-05-31 Thread William Hubbs
On Tue, May 31, 2011 at 07:19:16AM -0400, David Relson wrote: > Why not use "echo >> ..." ?? > > Since the ">>" does an append, the original file contents are still > available for reference. > > Since the added line is at the end of the file, the new value will be > used instead of the old val

Re: [gentoo-user] setting locale

2011-05-31 Thread David Relson
On Mon, 30 May 2011 22:34:46 +0200 Nils Larsson wrote: > Eh... Right, so ... > > The echo example might have been a bit blunt. I've found myself using > echo examples as a general "you need to add this setting here" > device, like you learn to do when you start using Gentoo, might have > been a b

Re: [gentoo-user] setting locale

2011-05-30 Thread daid kahl
On 30 May 2011 20:58, Allan Gottlieb wrote: > On Mon, May 30 2011, David W. Noon wrote: > >> On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re: >> [gentoo-user] setting locale: >> >>>måndagen den 30 maj 2011 03:26:49 skrev  Allan Gottlieb: >&

Re: [gentoo-user] setting locale

2011-05-30 Thread Allan Gottlieb
On Mon, May 30 2011, David W. Noon wrote: > On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re: > [gentoo-user] setting locale: > >>måndagen den 30 maj 2011 03:26:49 skrev Allan Gottlieb: >>> What must I do to get "en_US_utf8" ? >> >&g

Re: [gentoo-user] setting locale

2011-05-30 Thread Nils Larsson
Eh... Right, so ... The echo example might have been a bit blunt. I've found myself using echo examples as a general "you need to add this setting here" device, like you learn to do when you start using Gentoo, might have been a bit presumptuous of me. As for the incorrect locale string, copy&

Re: [gentoo-user] setting locale

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 18:46:47 +0100, David W Noon wrote: > >Setting noclobber in /etc/profile.d/*shopts.sh avoids that particular > >problem, as well was the one of accidentally nuking a file when you > >meant to add to it with >>. > > Setting noclobber is fine for not obliterating the current c

Re: [gentoo-user] setting locale

2011-05-30 Thread Dale
Florian Philipp wrote: Sure thing. However, it is much faster to type `echo foo> bar` than writing "Open your favorite file editor and enter 'foo' into 'bar'." Being concise is often the better approach when you want to show a solution to the problem at hand instead of educating the reader. Ev

Re: [gentoo-user] setting locale

2011-05-30 Thread David W Noon
On Mon, 30 May 2011 18:00:02 +0200, Neil Bothwick wrote about Re: [gentoo-user] setting locale: >On Mon, 30 May 2011 15:43:19 +0100, David W Noon wrote: > >> Moreover, I never use file redirection from echo when a text editor >> is a more appropriate tool. What you have sug

Re: [gentoo-user] setting locale

2011-05-30 Thread Florian Philipp
Am 30.05.2011 16:43, schrieb David W Noon: > On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re: > [gentoo-user] setting locale: > >> måndagen den 30 maj 2011 03:26:49 skrev Allan Gottlieb: >>> What must I do to get "en_US_utf8" ? >> >>

Re: [gentoo-user] setting locale

2011-05-30 Thread Neil Bothwick
On Mon, 30 May 2011 15:43:19 +0100, David W Noon wrote: > Moreover, I never use file redirection from echo when a text editor is > a more appropriate tool. What you have suggested above could well > replace a valid locale setting with an that invalid one, without any > checks at all on the existi

Re: [gentoo-user] setting locale

2011-05-30 Thread David W Noon
On Mon, 30 May 2011 04:20:01 +0200, Nils Larsson wrote about Re: [gentoo-user] setting locale: >måndagen den 30 maj 2011 03:26:49 skrev Allan Gottlieb: >> What must I do to get "en_US_utf8" ? > >echo "LANG=en_US_utf8" > /etc/env.d/02locale >and >env-up

Re: [gentoo-user] setting locale

2011-05-30 Thread Allan Gottlieb
On Sun, May 29 2011, Nils Larsson wrote: > måndagen den 30 maj 2011 03:26:49 skrev Allan Gottlieb: >> What must I do to get "en_US_utf8" ? > > echo "LANG=en_US_utf8" > /etc/env.d/02locale > and > env-update > should work. Thanks. It just needed source /etc/profile at the end. The variables ar

Re: [gentoo-user] setting locale

2011-05-29 Thread Nils Larsson
måndagen den 30 maj 2011 03:26:49 skrev Allan Gottlieb: > What must I do to get "en_US_utf8" ? echo "LANG=en_US_utf8" > /etc/env.d/02locale and env-update should work.

[gentoo-user] setting locale

2011-05-29 Thread Allan Gottlieb
On one of my machines all the LC_ variables are "POSIX". I want them to be "en_US.utf8" as on my other machines. I have the done the following (from the handbook) 1. cat /etc/local.gen (ignoring comments) en_US ISO-8859-1 en_US.UTF-8 UTF-8 2. locale-gen 3. source /etc/profile 4. loc