[postgis-devel] Patch for iconv support under Win32

Mark Cave-Ayland m.cave-ayland at webbased.co.uk
Mon Apr 10 03:52:38 PDT 2006


Hi everyone,

Please find enclosed a patch for review that allows MingW (Win32) builds to
correctly detect and use iconv to build shp2pgsql. The main issue is that
the entry point for iconv on Win32 is libiconv_open() as opposed to just
iconv_open(), so an extra test was added to autoconf to detect this. The
iconv.h header provides aliases from libiconv_open() to iconv_open() which
is why shp2pgsql will compile. The only other addition is that MingW does
not include the bzero() function included within shp2pgsql, and so a #define
has been added to replace this with a memset() call under MingW.


Kind regards,

Mark.

------------------------
WebBased Ltd
17 Research Way
Plymouth
PL6 8BT

T: +44 (0)1752 797131
F: +44 (0)1752 791023

http://www.webbased.co.uk   
http://www.infomapper.com
http://www.swtc.co.uk  

This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: postgis-mingw-iconv.patch
Type: application/octet-stream
Size: 967 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20060410/39a57dcc/attachment.obj>


More information about the postgis-devel mailing list