v2-0003-ltree-use-global_libc_locale.patch
text/x-patch
Filename: v2-0003-ltree-use-global_libc_locale.patch
Type: text/x-patch
Part: 2
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v2-0003
Subject: ltree: use global_libc_locale.
| File | + | − |
|---|---|---|
| contrib/ltree/crc32.c | 1 | 1 |
From 5b25dcf2e75a05e4edff72a8378183f390970329 Mon Sep 17 00:00:00 2001 From: Jeff Davis <jeff@j-davis.com> Date: Tue, 10 Jun 2025 20:06:50 -0700 Subject: [PATCH v2 3/7] ltree: use global_libc_locale. --- contrib/ltree/crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ltree/crc32.c b/contrib/ltree/crc32.c index 134f46a805e..5f5c563471e 100644 --- a/contrib/ltree/crc32.c +++ b/contrib/ltree/crc32.c @@ -12,7 +12,7 @@ #ifdef LOWER_NODE #include <ctype.h> -#define TOLOWER(x) tolower((unsigned char) (x)) +#define TOLOWER(x) tolower_l((unsigned char) (x), global_libc_locale) #else #define TOLOWER(x) (x) #endif -- 2.43.0