Re: RPM init-script: Why the locale setting?

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: RPM init-script: Why the locale setting?
Дата
Msg-id
29427.1081133411@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
RPM init-script: Why the locale setting? Troels Arvin <troels@arvin.dk>
Re: RPM init-script: Why the locale setting? Stephan Szabo <sszabo@megazone.bigpanda.com>
Re: RPM init-script: Why the locale setting? Paul Thomas <paul@tmsl.demon.co.uk>
Re: RPM init-script: Why the locale setting? Tom Lane <tgl@sss.pgh.pa.us>
Re: RPM init-script: Why the locale setting? Lamar Owen <lowen@pari.edu>
Re: RPM init-script: Why the locale setting? Tom Lane <tgl@sss.pgh.pa.us>
Re: RPM init-script: Why the locale setting? Lamar Owen <lowen@pari.edu>
Troels Arvin  writes:
> In the init-script contained in the RPMs downloadable from the PostgreSQL
> site (I checked the one for Fedora), an explicit locale is set before
> running initdb. - And the explicit locale is not "C".

Only if you don't have a sysconfig file:

	# Just in case no locale was set, use en_US
	[ ! -f /etc/sysconfig/i18n ] && echo "LANG=en_US" > $PGDATA/../initdb.i18n 

I agree though that it seems like a bad choice to default to en_US
rather than C.  Lamar, any reason why it's like that?

			regards, tom lane
В списке pgsql-general по дате отправления
От: Bruce Momjian
Дата:
Сообщение: Re: thread_test.c problems
От:
Дата:
Сообщение: Re: thread_test.c problems
FAQ