Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 029fa66

Browse files
committed
Use "true" not "TRUE" in one ICU function call.
This was evidently missed in commit 6337865, 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 6337865 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/[email protected]
1 parent 139c439 commit 029fa66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/collationcmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ get_icu_language_tag(const char *localename)
463463
UErrorCode status;
464464

465465
status = U_ZERO_ERROR;
466-
uloc_toLanguageTag(localename, buf, sizeof(buf), TRUE, &status);
466+
uloc_toLanguageTag(localename, buf, sizeof(buf), true, &status);
467467
if (U_FAILURE(status))
468468
ereport(ERROR,
469469
(errmsg("could not convert locale name \"%s\" to language tag: %s",

0 commit comments

Comments
 (0)