Re: Strange collation names ("hu_HU.UTF-8")

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Durumdara <durumdara(at)gmail(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Strange collation names ("hu_HU.UTF-8")
Date: 2022-08-03 02:49:14
Message-ID: CA+hUKGKrbNCUKxGz8fg2r-FkcMW2e6uj6zhy8ctLHEq0CnF8cQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 3, 2022 at 1:43 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I believe most if not all variants of Unix are
> permissive about the spelling of the encoding part.

I've only seen glibc doing that downcase-and-strip-hyphens thing to
the codeset part of a locale name when looking for locale definition
files. Other systems like FreeBSD expect to be able to open
/usr/share/locale/$LC_COLLATE/LC_COLLATE directly without any kind of
munging. On a Mac it's probably a little fuzzy because the filenames
are case insensitive...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message jian he 2022-08-03 08:32:36 Re: ICU is not supported in this build. install from source code.
Previous Message Peter J. Holzer 2022-08-02 19:41:57 Re: Copying records from TABLE_A to TABLE_B (in the same database)