Re: LOCALE C.UTF-8 on EDB Windows v17 server - Mailing list pgsql-general

From Laurenz Albe
Subject Re: LOCALE C.UTF-8 on EDB Windows v17 server
Date
Msg-id f292cf26e515b425ff35b5ad3eab0d6a8e4d385c.camel@cybertec.at
Whole thread Raw
In response to LOCALE C.UTF-8 on EDB Windows v17 server  (Dominique Devienne <ddevienne@gmail.com>)
Responses Re: LOCALE C.UTF-8 on EDB Windows v17 server
List 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



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Yet more ROLE changes in v18 beta1???
Next
From: Jeff Davis
Date:
Subject: Re: LOCALE C.UTF-8 on EDB Windows v17 server