Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitceaeac5

Browse files
committed
Fix minor issues with new unicode {de,re}composition code
The table generation script would incorrectly complain in therecomposition sorting when matching code points. This would not havecaused the generation of an incorrect table. Note that this conditionis not reachable yet, but could have been reached with future updates.pg_bswap.h does not need to be included in the frontend.xAuthor: John NaylorDiscussion:https://postgr.es/m/CAFBsxsGWmExpvv=61vtDKCs7+kBbhkwBDL2Ph9CacziFKnV_yw@mail.gmail.com
1 parent7577dd8 commitceaeac5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/common/unicode/generate-unicode_norm_table.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ sub recomp_sort
400400
my$bcode =hex($b->{code});
401401

402402
return -1if$acode <$bcode;
403-
return-1if$acode >$bcode;
403+
return1if$acode >$bcode;
404404

405405
die"found duplicate entries of recomposeable code pairs";
406406
}

‎src/common/unicode_norm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#ifndefFRONTEND
2323
#include"common/unicode_norm_hashfunc.h"
2424
#include"common/unicode_normprops_table.h"
25+
#include"port/pg_bswap.h"
2526
#else
2627
#include"common/unicode_norm_table.h"
2728
#endif
28-
#include"port/pg_bswap.h"
2929

3030
#ifndefFRONTEND
3131
#defineALLOC(size) palloc(size)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp