pgsql: Use pg_ascii_tolower()/pg_ascii_toupper() where appropriate.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use pg_ascii_tolower()/pg_ascii_toupper() where appropriate.
Date: 2025-07-01 14:25:34
Message-ID: E1uWbvS-004COR-1n@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use pg_ascii_tolower()/pg_ascii_toupper() where appropriate.

Avoids unnecessary dependence on setlocale(). No behavior change.

This commit reverts e1458f2f1b, which reverted some changes
unintentionally committed before the branch for 19.

Reviewed-by: Peter Eisentraut <peter(at)eisentraut(dot)org>
Discussion: https://postgr.es/m/a8666c391dfcabe79868d95f7160eac533ace718.camel@j-davis.com
Discussion: https://postgr.es/m/7efaaa645aa5df3771bb47b9c35df27e08f3520e.camel@j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d81dcc8d6243054e3bde40c6fb2b2a0be4b19da6

Modified Files
--------------
contrib/isn/isn.c | 4 ++--
contrib/spi/refint.c | 2 +-
src/backend/commands/copyfromparse.c | 2 +-
src/backend/utils/adt/inet_net_pton.c | 3 +--
4 files changed, 5 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2025-07-01 14:51:39 pgsql: Control ctype behavior internally with a method table.
Previous Message Tomas Vondra 2025-07-01 13:25:33 pgsql: Fix indentation in pg_numa code