Changes between Version 122 and Version 123 of DevWikiWinMingW64


Ignore:
Timestamp:
Mar 19, 2012, 5:24:15 AM (12 years ago)
Author:
robe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiWinMingW64

    v122 v123  
    362362
    363363== Compiling PostGIS 2.0 ==
    364 
     364 * There is a problem at least for my Mingw64 that prevents functions like ST_AsText and ST_AsKML that makes it leave out digitis randomly
     365 * This probably also causes issues for shp2pgsql.  The issue is the fact that the MingW64 chain uses the
     366 * Microsoft's vsprintf version instead of the C99 one. This version when space is not enough returns an error code instead of length of output the write
     367 * To work around this issue, I put in this pretty ugly hack in the liblwgeom/string_buffer.c around line 210
     368change:
     369{{{
     370        if ( len < 0 )
     371                return len;
     372}}}
     373
     374to:
     375{{{
     376        if ( len < 0 )
     377                len = _vscprintf(fmt, ap2);
     378}}}
     379
     380Details of this issue are outlined in #1668
     381               
    365382{{{
    366383export PROJECTS=/c/ming64/projects