Reject use of ucol_strcollUTF8() before ICU 53

Peter Eisentraut <peter_e@gmx.net>

Commit: d6391b03b3025372620925e5746e65c288a1e371
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-08-11T02:14:00Z
Releases: 10.0
Reject use of ucol_strcollUTF8() before ICU 53

Various bugs can cause crashes, so don't use that function before ICU
53.  It will fall back to the code path used for other encodings.

Since we now tie the function availability to an ICU version, we don't
need the configure test anymore.  That also resolves the issue that the
test result was previously hardcoded for Windows.

researched by Daniel Verite <daniel@manitou-mail.org>, Peter Geoghegan
<pg@bowt.ie>, Tom Lane <tgl@sss.pgh.pa.us>

Discussion: https://www.postgresql.org/message-id/flat/f1438ec6-22aa-4029-9a3b-26f79d330e72%40manitou-mail.org

Files

PathChange+/−
configure modified +0 −38
configure.in modified +0 −16
src/include/pg_config.h.in modified +0 −3
src/include/pg_config.h.win32 modified +0 −3
src/include/utils/pg_locale.h modified +13 −0

Discussion