Skip site navigation (1) Skip section navigation (2)

Re: initdb of regression test failed.

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: initdb of regression test failed.
Date: 2007-10-03 08:28:28
Message-ID: 20071003171253.2626.ITAGAKI.TAKAHIRO@oss.ntt.co.jp (view raw or flat)
Thread:
Lists: pgsql-patches
"Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> wrote:

> Ah Ok, Please check it.

Your patch looks useful to prevent mismatch of encoding and locale on Windows,
but I found there is a limitation that user will not able to specify locale.
I added an alternative of nl_langinfo(CODESET) for Win32.

Please check following commands:
 initdb --encoding=EUC_jp --locale=Japanese_Japan.932
   vs.
 initdb --encoding=EUC_jp --locale=Japanese_Japan.20932


One problem is that user need to know codepage numbers. It might
be possible to replace the default codepage to server encodings
automatically if we have a mapping table from encoding to codepage.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center


Attachment: chklocale-v2.patch
Description: application/octet-stream (4.3 KB)

In response to

Responses

pgsql-patches by date

Next:From: Michael MeskesDate: 2007-10-03 08:58:18
Subject: Re: ecpg DllMain fix
Previous:From: Hiroshi SaitoDate: 2007-10-03 03:26:04
Subject: Re: initdb of regression test failed.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group