Re: Windows default locale vs initdb

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Windows default locale vs initdb
Date: 2021-04-19 18:16:55
Message-ID: db3112ab-6ff5-9776-9689-d5e642f02df0@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 19.04.21 07:42, Thomas Munro wrote:
> It looks
> like one possibility, since Vista, is to call
> GetUserDefaultLocaleName()[2], which doesn't appear to have been
> discussed before on this list. That doesn't allow you to ask for the
> default for each individual category, but I don't know if that is even
> a concept for Windows user settings.

pg_newlocale_from_collation() doesn't support collcollate != collctype
on Windows anyway, so that wouldn't be an issue.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2021-04-19 18:17:11 Re: multi-install PostgresNode fails with older postgres versions
Previous Message Peter Geoghegan 2021-04-19 18:13:37 Re: Bogus collation version recording in recordMultipleDependencies