Index: src/backend/dbi/gnc-backend-dbi.c
===================================================================
--- src/backend/dbi/gnc-backend-dbi.c	(Revision 20205)
+++ src/backend/dbi/gnc-backend-dbi.c	(Arbeitskopie)
@@ -2887,6 +2887,7 @@
         return FALSE;
     }
     dbi_result_free( result );
+    gnc_push_locale( LC_NUMERIC, "C");
     result = dbi_conn_query( conn, "SELECT * FROM numtest" );
     if ( result == NULL )
     {
@@ -2899,12 +2900,11 @@
     }
     while ( dbi_result_next_row( result ))
     {
-        gnc_push_locale( LC_NUMERIC, "C");
         resultlonglong = dbi_result_get_longlong( result, "test_int" );
         resultulonglong = dbi_result_get_ulonglong( result, "test_unsigned" );
         resultdouble = dbi_result_get_double( result, "test_double" );
-        gnc_pop_locale( LC_NUMERIC );
     }
+    gnc_pop_locale( LC_NUMERIC );
     if ( testlonglong != resultlonglong )
     {
         PWARN( "Test_DBI_Library: LongLong Failed %" G_GINT64_FORMAT " != % " G_GINT64_FORMAT,
