summaryrefslogtreecommitdiff
path: root/src/common/unicode
diff options
context:
space:
mode:
authorMichael Paquier2020-11-07 01:15:58 +0000
committerMichael Paquier2020-11-07 01:15:58 +0000
commitceaeac54f75f0117a7b3caa2f8ecba5cfac18ee5 (patch)
tree3256bf88e7e609d43eb5cf08a2623c8552e8385e /src/common/unicode
parent7577dd84807a808f295dbfb0191540750ff98002 (diff)
Fix minor issues with new unicode {de,re}composition code
The table generation script would incorrectly complain in the recomposition sorting when matching code points. This would not have caused the generation of an incorrect table. Note that this condition is not reachable yet, but could have been reached with future updates. pg_bswap.h does not need to be included in the frontend.x Author: John Naylor Discussion: https://postgr.es/m/CAFBsxsGWmExpvv=61vtDKCs7+kBbhkwBDL2Ph9CacziFKnV_yw@mail.gmail.com
Diffstat (limited to 'src/common/unicode')
-rw-r--r--src/common/unicode/generate-unicode_norm_table.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/unicode/generate-unicode_norm_table.pl b/src/common/unicode/generate-unicode_norm_table.pl
index e4d3ccc2346..8213532ab9d 100644
--- a/src/common/unicode/generate-unicode_norm_table.pl
+++ b/src/common/unicode/generate-unicode_norm_table.pl
@@ -400,7 +400,7 @@ sub recomp_sort
my $bcode = hex($b->{code});
return -1 if $acode < $bcode;
- return -1 if $acode > $bcode;
+ return 1 if $acode > $bcode;
die "found duplicate entries of recomposeable code pairs";
}