mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Force LC_NUMERIC to C while running TAP tests.
We already forced LC_MESSAGES to C in order to get consistent message output, but that isn't enough to stabilize messages that include %f or similar formatting. I'm a bit surprised that this hasn't come up before. Perhaps we ought to back-patch this change, but I'll refrain for now. Reported-by: Bernd Helmle <mailings@oopsware.de> Author: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/6f024eaa7885eddf5e0eb4ba1d095fbc7146519b.camel@oopsware.de
This commit is contained in:
@ -108,6 +108,7 @@ BEGIN
|
|||||||
delete $ENV{LANGUAGE};
|
delete $ENV{LANGUAGE};
|
||||||
delete $ENV{LC_ALL};
|
delete $ENV{LC_ALL};
|
||||||
$ENV{LC_MESSAGES} = 'C';
|
$ENV{LC_MESSAGES} = 'C';
|
||||||
|
$ENV{LC_NUMERIC} = 'C';
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
# This list should be kept in sync with pg_regress.c.
|
# This list should be kept in sync with pg_regress.c.
|
||||||
|
Reference in New Issue
Block a user