Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u6UBv-00GbKg-82 for pgsql-hackers@arkaria.postgresql.org; Sun, 20 Apr 2025 12:54:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u6UAt-00BQ1p-Oc for pgsql-hackers@arkaria.postgresql.org; Sun, 20 Apr 2025 12:53:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u6UAt-00BQ1h-4i for pgsql-hackers@lists.postgresql.org; Sun, 20 Apr 2025 12:53:32 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u6UAp-0014Ei-12 for pgsql-hackers@postgresql.org; Sun, 20 Apr 2025 12:53:31 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-223fd89d036so38751225ad.1 for ; Sun, 20 Apr 2025 05:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1745153605; x=1745758405; darn=postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FKZ2NG0bdsA59EXTXrtLQ9uNJLBCI7ndpj1/56YGiA4=; b=ffuWCBhym4l/nGFcGumG3N2P1j/poT7RjSRoQO1VQoRVZfRxDmiqP/cGEDwLQxETJo T+/ttDYhFF/tMC1tebxgTO33bb5Jl/Wig7boVWmYtBCliHvgb6OGmaP3YlQyOOdD5QkF RWxUOvY1MW0UU5OjU6vwfyb2UPQwAQUbyupUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745153605; x=1745758405; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FKZ2NG0bdsA59EXTXrtLQ9uNJLBCI7ndpj1/56YGiA4=; b=v/8b/r9sBMOpB+mNxHiTgPu7rkhi2WRVNOSF7sp8wuJBcamVQ+ZgC76LjCEyxSoJGW 0HG0XflC7heWAJqsOFy0tQAXa3z3aGdm5Q/J6F8oTQff6pMq3YLPn9gRkuqO3N7Kkwqi Cykty144qhP0v+6bDk804hemMrKblK0Clwt6kdaAWeRpG0eZ/A4Cp8J6VabXSPNLlILg UURNibLbcnTUZbr4L10cAUC5ze+h4kDI5i5GPPTYf3tgoGeLtGQSv/HN/bXvvXfOKzYc KGg2SwAAsUMyGoBib9vND9NswbJXsAPljRSs7B07WSK+wnoyEnXcQOjgPtILKbxAyyhJ cLdg== X-Gm-Message-State: AOJu0YywLbzu+RjTkhcPTW7s7V7CzzA7n6BU7tOd9qxajhhu5aBv+H7U J/tPhMEHM8hYg8GzRdTEil9012c6ZYysr+jnB2KKqsuwkIxZjQnufgG+W7Yw/bEkPkbUxNd32jY = X-Gm-Gg: ASbGncu7SPa8by5WElXQCe2eSx+AQ/GEItt78ZQD0AW7hxHTlLWjOFTyJaXGoRZPz8t PyGuBpmfHLtT3IC5MOKZQNsp8YdbEfrjaM4LbcDocOFERIyeBjLd648wYk3hAJT5Nuf63NI/gbm 0wCNGWwyYiFScSpyR/DnFsHBSx68Ycb9FcWSFmakglztRMtoy55qMW1CVLOtOrQIkgQ3PDrK4bB xjcU/Tfg8ZgkAo9KfvyYMCEr721cSta02OKlPq6/Om+6otSir9t/exjPI1AN74IddAHNvT4pazS 3YP6xReSNaHBGlU4Fg6Mi7hxmYcK9nJwXbfxBA== X-Google-Smtp-Source: AGHT+IHZ4OoNll1X3g4RzEdGnCxYujnlJDXKcl1RP5GwHKzGizfUn5FbNyd602AX+BpAYY1j9QJo+w== X-Received: by 2002:a17:902:ef11:b0:224:2384:5b40 with SMTP id d9443c01a7336-22c535a7e46mr144417655ad.24.1745153605404; Sun, 20 Apr 2025 05:53:25 -0700 (PDT) Received: from google.com ([2601:647:5600:80d0::31cd]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22c50eb03d2sm47819305ad.142.2025.04.20.05.53.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Apr 2025 05:53:24 -0700 (PDT) Date: Sun, 20 Apr 2025 05:53:22 -0700 From: Noah Misch To: Jeff Davis Cc: pgsql-hackers@postgresql.org Subject: Re: Unicode full case mapping: PG_UNICODE_FAST, and standard-compliant UCS_BASIC Message-ID: <20250420125322.0b.nmisch@google.com> References: <179d2b9eb62ce9584177f4c863174c94de9985b7.camel@j-davis.com> <548f78d50590dfa119b21128c30c8ded5ce7e69d.camel@j-davis.com> <03d1416a974f7349b2415e01e85aac943fc55ba8.camel@j-davis.com> <20250417135841.33.nmisch@google.com> <130bf15c8d18c20c0e3c76ef85cd057cacb565dc.camel@j-davis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <130bf15c8d18c20c0e3c76ef85cd057cacb565dc.camel@j-davis.com> User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Apr 19, 2025 at 12:30:57PM -0700, Jeff Davis wrote: > On Thu, 2025-04-17 at 06:58 -0700, Noah Misch wrote: > > Should initcap_wbnext() pass in a locale-dependent "bool posix" > > argument like > > the others calls the commit changed? > > Yes, I believe you are correct. Patch and tests attached. That patch is ready for commit. > > Long-term, pg_u_isword() should have a "bool posix" argument.  > > Currently, only > > tests call that function.  If it got a non-test caller, > > https://www.unicode.org/reports/tr18/#word would have pg_u_isword() > > follow the > > choice of posix compatibility like pg_u_isalnum() does. > > I based those functions on: > > https://www.unicode.org/reports/tr18/#Compatibility_Properties > > and the "word" class does not have a POSIX variant. I missed that distinction. I withdraw this part.