]> granicus.if.org Git - postgresql/commit
Make configure probe for mbstowcs_l as well as wcstombs_l.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Aug 2012 18:17:56 +0000 (14:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Aug 2012 18:17:56 +0000 (14:17 -0400)
commit58a031f920c225b20fdb45c1e56fe41ed7568900
treed2b50c39dfea2c01540702cf5953df0346588926
parentfe811ae8105a89ea60561dfae2fa7c3504a238a1
Make configure probe for mbstowcs_l as well as wcstombs_l.

We previously supposed that any given platform would supply both or neither
of these functions, so that one configure test would be sufficient.  It now
appears that at least on AIX this is not the case ... which is likely an
AIX bug, but nonetheless we need to cope with it.  So use separate tests.
Per bug #6758; thanks to Andrew Hastie for doing the followup testing
needed to confirm what was happening.

Backpatch to 9.1, where we began using these functions.
configure
configure.in
src/backend/utils/adt/pg_locale.c
src/include/pg_config.h.in
src/include/pg_config.h.win32