diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-16 15:16:39 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-16 15:16:39 -0500 |
commit | 029fa664ecb8687eb60633b4ccf230b457a1fb77 (patch) | |
tree | 2147a55b8feefe7b7d5604ce26ea388abe2045fb /src | |
parent | 139c439730b1444be88203cf867e60dd7533b294 (diff) | |
download | postgresql-029fa664ecb8687eb60633b4ccf230b457a1fb77.tar.gz postgresql-029fa664ecb8687eb60633b4ccf230b457a1fb77.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')
-rw-r--r-- | src/backend/commands/collationcmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/collationcmds.c b/src/backend/commands/collationcmds.c index 919e092483a..61e82b050d5 100644 --- a/src/backend/commands/collationcmds.c +++ b/src/backend/commands/collationcmds.c @@ -463,7 +463,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", |