initdb and OSX why must I --no-locale

Started by Theodore Petroskyover 23 years ago3 messagesbugs
Jump to latest
#1Theodore Petrosky
tedpet5@yahoo.com

I've just finished the install of 7.3 release on mac
OSX 10.2.2. I notice that initdb will permit me to
init a directory for use, then when running postmaster
using the directory I get a fatal error:

FATAL: invalid value for option 'LC_TIME': 'en'

Shouldn't initdb check and not init with this locale..

I had to delete, then re-init. Not a real big deal,
just annoying to do something twice.

BTW, what is the problem with OSX that it requires
--no-locale?

Ted

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Theodore Petrosky (#1)
Re: initdb and OSX why must I --no-locale

Theodore Petrosky <tedpet5@yahoo.com> writes:

I've just finished the install of 7.3 release on mac
OSX 10.2.2. I notice that initdb will permit me to
init a directory for use, then when running postmaster
using the directory I get a fatal error:

FATAL: invalid value for option 'LC_TIME': 'en'

Are you sure it didn't say 'en_US' ? That's what I get on OSX if
I don't set LANG to C (or equivalently use --no-locale).

BTW, what is the problem with OSX that it requires
--no-locale?

Apple's locale handling seems to be fairly broken. They should not set
LANG to a value that their own library won't accept. I'd suggest filing
a bug report with them.

regards, tom lane

#3Theodore Petrosky
tedpet5@yahoo.com
In reply to: Tom Lane (#2)
Re: initdb and OSX why must I --no-locale

I will send the bug report copying what is said here
to Apple.

I copied and pasted the error message here so it did
not say 'en_US'.

Ted

--- Tom Lane <tgl@sss.pgh.pa.us> wrote:

Theodore Petrosky <tedpet5@yahoo.com> writes:

I've just finished the install of 7.3 release on

mac

OSX 10.2.2. I notice that initdb will permit me to
init a directory for use, then when running

postmaster

using the directory I get a fatal error:

FATAL: invalid value for option 'LC_TIME': 'en'

Are you sure it didn't say 'en_US' ? That's what I
get on OSX if
I don't set LANG to C (or equivalently use
--no-locale).

BTW, what is the problem with OSX that it requires
--no-locale?

Apple's locale handling seems to be fairly broken.
They should not set
LANG to a value that their own library won't accept.
I'd suggest filing
a bug report with them.

regards, tom lane

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com