Re: initdb.exe changes --locale option

From: Mike Toews <mwtoews(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: initdb.exe changes --locale option
Date: 2012-09-12 00:39:41
Message-ID: CAM2FmMrOjhyQBBF=kJLZ3JFagpUCf864EHYYpYk=ctXRG2TGVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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.2\bin\initdb.exe" --locale="key" --encoding=UTF-8 -D NUL

C : C
English : English_United States.1252
French : French_France.1252
nonsense : English_New Zealand.1252
displays initdb: invalid locale name "nonsense" 6 times
French, Canada : French_France.1252
French_Canada : French_Canada.1252
English, Canada : English_United States.1252
English_New_Zealand : English_New Zealand.1252
displays initdb: invalid locale name "English_New_Zealand" 6 times
English, New Zealand : English_United States.1252
English_New Zealand : English_New Zealand.1252

Interestingly, this OS displays "initdb: invalid locale name" (six
times), whereas I don't recall seeing that message with Vista. But it
doesn't tell me that "English, New Zealand" is invalid, while it
changes the locale to "English_United States.1252", which is puzzling.

-Mike

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message arsen_mmx 2012-09-12 01:48:47 BUG #7532: cannot update to 9.2
Previous Message Mike Toews 2012-09-11 23:57:08 Re: BUG #7530: initdb.exe ignores --locale option, uses "English_United States.1252"