Bruce Momjian <bruce@momjian.us> writes:
> On Mon, Sep 24, 2012 at 11:22:22AM -0400, Peter Eisentraut wrote:
>> initdb has changed POSIX to C with glibc at least since 8.3. The code
>> you're quoting is just a refactoring, AFAICT.
> Frankly, I assumed the values assigned in pg_database for template0 were
> canonical. Tom is saying that canonicalization behavior changed
> between 9.1 to 9.2, and the user is reporting this.
It was not just a refactoring: we now pass the locale names through
setlocale() which we didn't before. See commit
c7cea267de3ca05b29a57b9d113b95ef3793c8d8.
regards, tom lane