Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Dave Page
On Fri, Sep 14, 2012 at 10:09 AM, Tom Lane wrote: > Dave Page writes: >> On Fri, Sep 14, 2012 at 6:14 AM, Sandeep Thakkar >> wrote: >>> No.. what I mean to say is that the output from getlocales is same in 9.1 >>> and 9.2. (I checked the installation logs). It's initdb in 9.2 that is not >>> ac

Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Tom Lane
Dave Page writes: > On Fri, Sep 14, 2012 at 6:14 AM, Sandeep Thakkar > wrote: >> No.. what I mean to say is that the output from getlocales is same in 9.1 >> and 9.2. (I checked the installation logs). It's initdb in 9.2 that is not >> accepting the same output. So, it has nothing to with the VC

Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Dave Page
I note also that two of the special case locales Mike found are ones that are supposed to be handled properly by that patch (they have dots in the name). Here's an earlier attempt, which I believe the second patch was intended to complement: http://git.postgresql.org/gitweb/?p=postgresql.git;a=com

Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Dave Page
On Fri, Sep 14, 2012 at 6:14 AM, Sandeep Thakkar wrote: > No.. what I mean to say is that the output from getlocales is same in 9.1 > and 9.2. (I checked the installation logs). It's initdb in 9.2 that is not > accepting the same output. So, it has nothing to with the VC++ runtimes. Ah, OK. Sorr

Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Sandeep Thakkar
No.. what I mean to say is that the output from getlocales is same in 9.1 and 9.2. (I checked the installation logs). It's initdb in 9.2 that is not accepting the same output. So, it has nothing to with the VC++ runtimes. PG9.1: -- c:\Program Files\PostgreSQL\9.1>bin\initdb.exe" --locale="English

Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Dave Page
On Friday, September 14, 2012, Sandeep Thakkar wrote: > I think everything is covered by Mike here. "getlocales.exe" returns the > list of locales in the format "Language, Country" for most of them. and > this worked fine on 9.1, but does not work on 9.2. And if we are looking > for a workaround i

Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Sandeep Thakkar
I think everything is covered by Mike here. "getlocales.exe" returns the list of locales in the format "Language, Country" for most of them. and this worked fine on 9.1, but does not work on 9.2. And if we are looking for a workaround in installer, then as Mike suggested, we should handle it in ini

Re: [BUGS] initdb.exe changes --locale option

2012-09-14 Thread Sandeep Thakkar
I think everything is covered by Mike here. "getlocales.exe" returns the list of locales in the format "Language, Country" for most of them. and this worked fine on 9.1, but does not work on 9.2. And if we are looking for a workaround in installer, then as Mike suggested, we should handle it in ini

Re: [BUGS] initdb.exe changes --locale option

2012-09-13 Thread Dave Page
Sandeep, can you look into this and respond on list please? The thread started here: http://archives.postgresql.org/pgsql-bugs/2012-09/msg00083.php It sounds to me like the OS is at fault for not accepting the name it gives to a locale as input, and that the change to the installer would be a work

Re: [BUGS] initdb.exe changes --locale option

2012-09-12 Thread Mike Toews
I've found a general solution: with the locale string, replace the first ", " (comma space) with "_". Around line 33 of initcluster.vbs, add: strLocale = Replace(strLocale,", ","_",1,1) I think it is fine to show "English, New Zealand" in the drop-down menu for the GUI installer, but initcluster

Re: [BUGS] initdb.exe changes --locale option

2012-09-11 Thread Mike Toews
Testing on another Windows OS, here is a similar key : value exercise, described previously. The system is Windows 7 64-bit, with a system locale: "en-nz;English (New Zealand)" (from systeminfo.exe). The version of initdb.exe is 9.2.0, and the full command-line is: >"C:\Program Files\PostgreSQL\9.

Re: [BUGS] initdb.exe changes --locale option

2012-09-10 Thread Dave Page
Hi On Mon, Sep 10, 2012 at 10:07 PM, Mike Toews wrote: > I'm using the "postgresql-9.2.0-1-windows.exe" installer, from > Enterprise DB, on a Windows Vista 32-bit computer. > > The issue was noticed with the GUI installer, where I chose the local > option "English, New Zealand" from a drop-down m

Re: [BUGS] initdb.exe changes --locale option

2012-09-10 Thread Mike Toews
Furthermore, to compare with initdb.exe from 9.1 on the same computer, here are the key : value pairs from the --locale="key" and locale used. >"C:\Program Files\PostgreSQL\9.1\bin\initdb.exe" --version initdb (PostgreSQL) 9.1.4 C : C English : English French : French nonsense : English_United Ki

[BUGS] initdb.exe changes --locale option

2012-09-10 Thread Mike Toews
I'm using the "postgresql-9.2.0-1-windows.exe" installer, from Enterprise DB, on a Windows Vista 32-bit computer. The issue was noticed with the GUI installer, where I chose the local option "English, New Zealand" from a drop-down menu, but the resulting database cluster has "English_United States