pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>
Cc: Alexander Korotkov <aekorotkov@gmail.com>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Initcap works differently with different locale providers
Date: Mon, 04 Aug 2025 13:59:45 -0700
Message-ID: <d8eacbeb8194c578a98317b86d7eb2ef0b6eb0e0.camel@j-davis.com> (raw)
In-Reply-To: <cdfa64230784d7e330c1a2a55237b94e@postgrespro.ru>
References: <804cc10ef95d4d3b298e76b181fd9437@postgrespro.ru>
	<0658C8F0-5ED4-4962-A2A3-524B0D899982@gmail.com>
	<9247c1b9531136e15d83511270e8c43bf877c9ca.camel@j-davis.com>
	<cdfa64230784d7e330c1a2a55237b94e@postgrespro.ru>

On Mon, 2025-08-04 at 12:30 +0700, Oleg Tselebrovskiy wrote:
> First patch just adds this warning about not relying on initcap()
> exact
> result. The second one is the same, but removes the part "what is a 
> word"
> since it's could be moot because we recommend writing custom
> functions,
> so understanding what is a word is not exactly needed. Still on the 
> fence
> about which patch is better, though

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).

Other than that I like the second version, which un-documents the
specific word boundary rules. I'll admit I'm not quite sure how people
use this function in practice, but I expect that it's mostly convenient
(or lazy) display.

Alexander, is there a reason you backported this change? I don't
normally backport doc improvements like this, but I'm not sure what
standard others use. The fact that it's on 7 branches makes me more
reluctant to commit these extra improvements on top. Can you take care
of these follow-up patches? Or, just revert the change and I can make
the improvements in master.

Regards,
	Jeff Davis






view thread (16+ messages)  latest in thread

Message-ID: <d8eacbeb8194c578a98317b86d7eb2ef0b6eb0e0.camel@j-davis.com>
Permalink:  ../d8eacbeb8194c578a98317b86d7eb2ef0b6eb0e0.camel@j-davis.com/
Also on:    postgresql.org/message-id/d8eacbeb8194c578a98317b86d7eb2ef0b6eb0e0.camel@j-davis.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: pgsql@j-davis.com, o.tselebrovskiy@postgrespro.ru, aekorotkov@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Initcap works differently with different locale providers
  In-Reply-To: <d8eacbeb8194c578a98317b86d7eb2ef0b6eb0e0.camel@j-davis.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox