diff --git a/src/interfaces/ecpg/test/complex/test4.pgc b/src/interfaces/ecpg/test/complex/test4.pgc index b4fdbccb9305df746ff191d8865de767a8d1ee12..68a64c79acbadbea76b1d14a28d29bd17f1d9f10 100644 --- a/src/interfaces/ecpg/test/complex/test4.pgc +++ b/src/interfaces/ecpg/test/complex/test4.pgc @@ -33,7 +33,7 @@ EXEC SQL BEGIN DECLARE SECTION; EXEC SQL END DECLARE SECTION; strcpy(t, "0123456789"); - setlocale(LC_ALL, "de_DE"); + setlocale(LC_ALL, "C"); ECPGdebug(1, stderr); diff --git a/src/interfaces/ecpg/test/expected/complex-test4.c b/src/interfaces/ecpg/test/expected/complex-test4.c index cd82f235c06b1a1f63bc4fb18ff3a0c9c406209b..caf3f4f9fb36a03820a4656f0ac2aa7a5d64c419 100644 --- a/src/interfaces/ecpg/test/expected/complex-test4.c +++ b/src/interfaces/ecpg/test/expected/complex-test4.c @@ -152,7 +152,7 @@ main (void) strcpy(t, "0123456789"); - setlocale(LC_ALL, "de_DE"); + setlocale(LC_ALL, "C"); ECPGdebug(1, stderr); diff --git a/src/interfaces/ecpg/test/expected/complex-test4.stdout b/src/interfaces/ecpg/test/expected/complex-test4.stdout index 55a1ffb0d42cf02bad5ffcdb91c7a4d6564a7c9b..7e8a326fa11c856acf8d8e214bacbe6e645ead81 100644 --- a/src/interfaces/ecpg/test/expected/complex-test4.stdout +++ b/src/interfaces/ecpg/test/expected/complex-test4.stdout @@ -1,4 +1,4 @@ -Found f=14,070000 text=0123456789 b=1 +Found f=14.070000 text=0123456789 b=1 Found a[0] = 9 Found a[1] = 8 Found a[2] = 7 diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c index ea6831a9fcf819f4e8716dc1a7fa62a68c2cddd4..466c5de744206e2a0d78e90c04c89c0e2b4efc1e 100644 --- a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c +++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c @@ -384,7 +384,7 @@ if (sqlca.sqlcode < 0) sqlprint ( );} in = "1980-04-12 3:49:44 "; i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1); text = PGTYPEStimestamp_to_asc(ts1); - printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i); + printf("timestamp_defmt_asc(%s, NULL) = %s, error: %d\n", in, text, i); free(text); fmt = "%B %d, %Y. Time: %I:%M%p"; diff --git a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout index 30fc6e54bd3ae88ade8d01a5cc2d0076adc7e0cf..29f321928f7087efccb93bd20f2ed162ce6d42cd 100644 --- a/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout +++ b/src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout @@ -41,7 +41,7 @@ timestamp_defmt_asc(abc 18 October %34 17:28:44 CEST 80, abc%n %C %B %%%d %H:%M:%S %Z %y) = 1880-10-31 15:28:44, error (should be error!): 1 timestamp_defmt_asc(abc 18 October %34 17:28:44 CEST 80, ) = 1880-10-31 15:28:44, error (should be error!): 1 -timestamp_defmt_asc(1980-04-12 3:49:44 , (null)) = 1980-04-12 03:49:44, error: 0 +timestamp_defmt_asc(1980-04-12 3:49:44 , NULL) = 1980-04-12 03:49:44, error: 0 timestamp_defmt_asc(July 14, 1988. Time: 9:15am, %B %d, %Y. Time: %I:%M%p) = 1988-07-14 09:15:00, error: 0 timestamp_defmt_asc(September 6 at 01:30 pm in the year 1983, %B %d at %I:%M %p in the year %Y) = 1983-09-06 13:30:00, error: 0 timestamp_defmt_asc( 1976, July 14. Time: 9:15am, %Y, %B %d. Time: %I:%M %p) = 1976-07-14 09:15:00, error: 0 diff --git a/src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc b/src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc index 1648b3103d22fbb86b323f5bff0146f531282c4c..20a42b509ef78cc8768eb3b30b7edd4b81b9522b 100644 --- a/src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc +++ b/src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc @@ -313,7 +313,7 @@ main(void) in = "1980-04-12 3:49:44 "; i = PGTYPEStimestamp_defmt_asc(in, fmt, &ts1); text = PGTYPEStimestamp_to_asc(ts1); - printf("timestamp_defmt_asc(%s, %s) = %s, error: %d\n", in, fmt, text, i); + printf("timestamp_defmt_asc(%s, NULL) = %s, error: %d\n", in, text, i); free(text); fmt = "%B %d, %Y. Time: %I:%M%p";