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 |
| 368 | change: |
| 369 | {{{ |
| 370 | if ( len < 0 ) |
| 371 | return len; |
| 372 | }}} |
| 373 | |
| 374 | to: |
| 375 | {{{ |
| 376 | if ( len < 0 ) |
| 377 | len = _vscprintf(fmt, ap2); |
| 378 | }}} |
| 379 | |
| 380 | Details of this issue are outlined in #1668 |
| 381 | |