Re: initdb of regression test failed. - Mailing list pgsql-patches

From Hiroshi Saito
Subject Re: initdb of regression test failed.
Date
Msg-id 08be01c8056d$21262020$c601a8c0@HP22720319231
Whole thread Raw
In response to Re: initdb of regression test failed.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Hi.

From: "ITAGAKI Takahiro" <itagaki.takahiro@oss.ntt.co.jp>

>
> "Hiroshi Saito" <z-saito@guitar.ocn.ne.jp> wrote:
>
>> The database cluster will be initialized with locale Japanese_Japan.932.
>> initdb: locale Japanese_Japan.932 requires unsupported encoding SJIS
>> Encoding SJIS is not allowed as a server-side encoding.
>> -
>> I think that the check of this server side is the right action.!
>> I desire the further suggestion....
>
> How about changing initdb to use encoding=UTF-8 and no-locale when the
> encoding of default locale is not suppoted in the server? I think it is
> the most frequently used combination when we cannot use the default
> encoding in server.

Yeah, as for Japanese, your suggestion at least is right...I think.
However,  how is it in other countries?  I worry about it...

>
> The present initdb without options always fails in such environments.
> Using UTF-8 with no-locale is better than error.
> (Error is better than using wrong locale, though.)

Is a method specified and isn't it avoided by the document, rather than
ad-hoc management?

Regards,
Hiroshi Saito

pgsql-patches by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: initdb of regression test failed.
Next
From: ITAGAKI Takahiro
Date:
Subject: Re: initdb of regression test failed.