Re: LOCALE C.UTF-8 on EDB Windows v17 server

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: LOCALE C.UTF-8 on EDB Windows v17 server
Date: 2025-06-05 01:01:34
Message-ID: f292cf26e515b425ff35b5ad3eab0d6a8e4d385c.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2025-06-04 at 14:23 +0200, Dominique Devienne wrote:
> The command I'm using (from a libpq trace) is:
>
> create database "dd_v168" encoding 'UTF8' locale 'C.UTF-8'
> locale_provider 'builtin' template template0
>
> On Windows, I'm getting
>
> 2025-06-04 14:07:41.227419 B 155 ErrorResponse S "ERROR" V "ERROR" C
> "42809" M "invalid LC_COLLATE locale name: "C.UTF-8"" H "If the locale
> name is specific to ICU, use ICU_LOCALE." F "dbcommands.c" L "1057" R
> "createdb" \x00

Pilot error. If you use "LOCALE_PROVIDER builtin", you have to specify
BUILTIN LOCALE too:

CREATE DATABASE b
TEMPLATE template0
LOCALE_PROVIDER builtin
BUILTIN_LOCALE 'C.UTF-8'
/* used for aspects other than collation and character type */
LOCALE 'C';

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2025-06-05 02:52:14 Re: LOCALE C.UTF-8 on EDB Windows v17 server
Previous Message Laurenz Albe 2025-06-05 00:52:01 Re: Yet more ROLE changes in v18 beta1???