aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/collationcmds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-11-16 15:16:39 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-11-16 15:16:39 -0500
commitad84ecc98d7e2ad81567094b8a6910b5078927a7 (patch)
treef4674489f09f88267e1295d270841ef0b1f23f1e /src/backend/commands/collationcmds.c
parent62b50ad698f8a789f92177ad72639f99d94d7d78 (diff)
downloadpostgresql-ad84ecc98d7e2ad81567094b8a6910b5078927a7.tar.gz
postgresql-ad84ecc98d7e2ad81567094b8a6910b5078927a7.zip
Use "true" not "TRUE" in one ICU function call.
This was evidently missed in commit 6337865f3, which generally did s/TRUE/true/ everywhere. It escaped notice up to now because ICU versions before ICU 68 provided definitions of "TRUE" and "FALSE" regardless. With ICU 68, it fails to compile. Per report from Condor. Back-patch to v11 where 6337865f3 came in. (I've not tested v10, where this call originated, but I imagine it's fine since we defined TRUE in c.h back then.) Discussion: https://postgr.es/m/7a6f3336165bfe3ca66abcda7966f9d0@stz-bg.com
Diffstat (limited to 'src/backend/commands/collationcmds.c')
-rw-r--r--src/backend/commands/collationcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/collationcmds.c b/src/backend/commands/collationcmds.c
index 7b31272734d..32b2183598d 100644
--- a/src/backend/commands/collationcmds.c
+++ b/src/backend/commands/collationcmds.c
@@ -365,7 +365,7 @@ get_icu_language_tag(const char *localename)
UErrorCode status;
status = U_ZERO_ERROR;
- uloc_toLanguageTag(localename, buf, sizeof(buf), TRUE, &status);
+ uloc_toLanguageTag(localename, buf, sizeof(buf), true, &status);
if (U_FAILURE(status))
ereport(ERROR,
(errmsg("could not convert locale name \"%s\" to language tag: %s",