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

From Daniel Verite
Subject Re: LOCALE C.UTF-8 on EDB Windows v17 server
Date
Msg-id d57d35d0-9d27-4be7-aad9-b139a18b990d@manitou-mail.org
Whole thread Raw
In response to Re: 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
    Dominique Devienne wrote:

> On Linux, no error unlike on Windows (still inconsistent there IMHO),
> but the result is slightly different for datcollate and datctype (C vs
> en_US),
> while the same for datlocprovider and datlocale, what I looked at.
>
> Thus I kinda persist that there *is* a portability issue here.

"datcollate" and "datctype" refer to operating system locale names.

 locale 'C.UTF-8' or lc_collate 'C.UTF-8' lc_ctype 'C.UTF-8'
cannot work on Windows because Windows does not have a locale
named C.UTF-8, whereas a Linux system does (well at least recent
Linuxes. Some old Linuxes don't).

What you are seeing is the effect of OS locales not being portable
across systems. That's confusing but not a Postgres bug.


Best regards,
--
Daniel Vérité
https://postgresql.verite.pro/



pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Feature request: Settings to disable comments and multiple statements in a connection
Next
From: Dominique Devienne
Date:
Subject: Re: LOCALE C.UTF-8 on EDB Windows v17 server