Re: Initcap works differently with different locale providers

From: Oleg Tselebrovskiy <o(dot)tselebrovskiy(at)postgrespro(dot)ru>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Initcap works differently with different locale providers
Date: 2025-08-05 09:01:02
Message-ID: 31964db3672feeb6a527d8f7191d48e1@postgrespro.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Jeff Davis wrote at 2025-08-05 03:59:
> One more thing: we should also change it to "... to upper case (or
> title case) and the rest to lower case...". Title case is for scripts
> that have characters like 'Dž' (U+01C5).

Done based upon second version of previous patch. Again, there are two
versions - the first one has a mention of digraphs, like 'Dž' (U+01C5),
and the second one doesn't. And again, don't know which version is
better - title case without mentioning digraphs could be interpreted
as "don't capitalise articles and prepositions" or just "don't
capitalize articles", since the definition of "title case" is vague.
We have a "write your own function" clause, but still.

Maybe we should add an example of a digraph to the first patch to
make it more clear, if we go that path.

Attachment Content-Type Size
v3-0001-initcap-documentation.patch text/x-diff 1.3 KB
v3-0002-initcap-documentation.patch text/x-diff 1.3 KB

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2025-08-06 11:36:21 Re: Make pgoutput documentation easier to find
Previous Message Jeff Davis 2025-08-04 20:59:45 Re: Initcap works differently with different locale providers