Index: lib/descriptor.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/ecpg/lib/descriptor.c,v retrieving revision 1.21 diff -u -r1.21 descriptor.c --- lib/descriptor.c 2002/01/11 14:43:11 1.21 +++ lib/descriptor.c 2002/01/23 15:32:54 @@ -330,11 +330,18 @@ if (data_var.type!=ECPGt_EORT) { struct statement stmt; + char *oldlocale; + + /* Make sure we do NOT honor the locale for numeric input */ + /* since the database gives the standard decimal point */ + oldlocale = strdup(setlocale(LC_NUMERIC, NULL)); + setlocale(LC_NUMERIC, "C"); memset (&stmt, 0, sizeof stmt); stmt.lineno=lineno; /* desparate try to guess something sensible */ stmt.connection=ECPGget_connection(NULL); ECPGstore_result(ECPGresult, index, &stmt, &data_var); + setlocale(LC_NUMERIC, oldlocale); } else if (data_var.ind_type!=ECPGt_NO_INDICATOR) {