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

From Tom Lane
Subject Re: initdb of regression test failed.
Date
Msg-id 9131.1191476675@sss.pgh.pa.us
Whole thread Raw
In response to Re: initdb of regression test failed.  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Responses Re: initdb of regression test failed.  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-patches
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> In fact, we can accept options like:
>   initdb -E UTF8 --locale=Japanese_Japan.932 -- CP932 is SJIS in nature

Hmm, but does that really work safely?  I think varstr_cmp() does work,
because it forces our data into wchar format and then calls wcscoll().
The thing that scares me is that various random other operating-system
calls might deliver strings in an unexpected encoding.  We've been
through similar problems with timezone names reported by strftime, for
example.

            regards, tom lane

pgsql-patches by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: initdb of regression test failed.
Next
From: "Hiroshi Saito"
Date:
Subject: Re: initdb of regression test failed.