Re: Initcap works differently with different locale providers
Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>
From: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Alexander Korotkov <aekorotkov@gmail.com>,
pgsql-docs@lists.postgresql.org
Date: 2025-08-05T09:01:02Z
Lists: pgsql-docs
Attachments
- v3-0001-initcap-documentation.patch (text/x-diff) patch v3-0001
- v3-0002-initcap-documentation.patch (text/x-diff) patch v3-0002
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.
Commits
-
Further clarify documentation for the initcap function
- f8ce9ed220b5 19 (unreleased) landed
-
Revert "Clarify documentation for the initcap function"
- 0edaaa8f2978 14.19 landed
- 06633271ec40 13.22 landed
- 098c27dee4c1 15.14 landed
- b862465dba33 16.10 landed
- 3b3aa1f651c7 17.6 landed
- 2ae8280d16c9 18.0 landed
-
Clarify documentation for the initcap function
- 907ac2ca30bb 13.22 landed
- 276b022ec05b 14.19 landed
- 9af075c4e27e 15.14 landed
- d861b9282261 16.10 landed
- 3c05d4d3433e 17.6 landed
- 1fe9e3822c4e 18.0 landed
- c2c2c7e22566 19 (unreleased) landed