[postgresql] postgresql.init script and localization problem

sparky at pld-linux.org sparky at pld-linux.org
Mon Oct 30 16:43:49 CET 2006


On Mon, Oct 30, 2006 at 04:14:05PM +0100, Jérôme Augé wrote:
> Hi,

hello
 
> I fixed it by forcing LANG=C when calling pg_ctl:

> -	output=`TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $1 status"`
> +	output=`LANG=C TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $1 status"`

thanks for pointing this

but remember to use LC_ALL in such cases, because there are options with
higher priority than LANG (eg. LANGUAGE or LC_ALL)

-- 
 ____  Sparky{PI] -- Przemyslaw _  ___  _  _  ........... LANG...Pl..Ca..Es..En
/____) ___  ___  _ _ || Iskra  |  | _ \| |  | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// <   |  _/| |  | : JID......sparky<at>jabberes.org
(____/||   (_-_|_||  ||\\ ||   |_ |_|  |_| _| : Mail....sparky<at>pld-linux.org


More information about the pld-devel-en mailing list