initdb --locale=LATIN1 fails on Windows

Started by Abraham, Dannyover 16 years ago5 messagesgeneral
Jump to latest
#1Abraham, Danny
danny_abraham@bmc.com

The same command worked fine on PG 8.2.4.

Now, using 8.3.7, the command succeeds only with locale 1252.
It comments something on wrong lc_ctype.

Any idea?

Thanks

Danny

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Abraham, Danny (#1)
Re: initdb --locale=LATIN1 fails on Windows

"Abraham, Danny" <danny_abraham@bmc.com> writes:

Yeah, it should fail. LATIN1 is not a locale name.

The same command worked fine on PG 8.2.4.

If so, that was a bug in 8.2.

regards, tom lane

#3Abraham, Danny
danny_abraham@bmc.com
In reply to: Tom Lane (#2)
Re: initdb --locale=LATIN1 fails on Windows

Do you by chance know what is the ISO88591 locale to be used on Windows?

It should be something like Americam_United States.ISO88591.

Thanks

Danny

#4Abraham, Danny
danny_abraham@bmc.com
In reply to: Abraham, Danny (#3)
Re: initdb --locale=LATIN1 fails on Windows

Actually the command is: initdb --encoding=LATIN1.

It fails on Windos. fails on Windows

The same command worked fine on PG 8.2.4.

Now, using 8.3.7, the command succeeds only with encoding 1252.
It comments something on wrong lc_ctype.

Thanks

Danny

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Abraham, Danny (#4)
Re: initdb --locale=LATIN1 fails on Windows

On Wednesday 15 July 2009 23:02:47 Abraham, Danny wrote:

Actually the command is: initdb --encoding=LATIN1.

It fails on Windos. fails on Windows

The same command worked fine on PG 8.2.4.

Now, using 8.3.7, the command succeeds only with encoding 1252.
It comments something on wrong lc_ctype.

You need to also set the right locale to match the encoding you chose.