public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jeff Davis <[email protected]>
To: [email protected]
Subject: pgsql: Don't accept length of -1 in pg_locale.h APIs.
Date: Fri, 15 May 2026 18:10:07 +0000
Message-ID: <[email protected]> (raw)

Don't accept length of -1 in pg_locale.h APIs.

Reverts ac30021356. Per discussion, that commit interfered with useful
tooling, and was not worth the special cases.

Suggested-by: Andres Freund <[email protected]>
Discussion: https://postgr.es/m/s32n3tm2mjh247f3xkkxkdk7cf77hglbr3ia3hrsdjylajou7y@nlldpag3tjd5

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6d22c67c3bf5b50565062a35cbfc46075fb9c276

Modified Files
--------------
src/backend/utils/adt/pg_locale.c         |  42 +++----
src/backend/utils/adt/pg_locale_builtin.c |  13 +--
src/backend/utils/adt/pg_locale_icu.c     | 187 ++++++++++++++++++++++--------
src/backend/utils/adt/pg_locale_libc.c    | 161 ++++++++++++-------------
src/common/unicode/case_test.c            |  69 +++--------
src/common/unicode_case.c                 |  26 ++---
src/include/common/unicode_case.h         |   8 +-
src/include/utils/pg_locale.h             |  45 ++++---
8 files changed, 297 insertions(+), 254 deletions(-)



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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Don't accept length of -1 in pg_locale.h APIs.
  In-Reply-To: <[email protected]>

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

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