Hi,
trying to build DBD::Pg I got failing tests because of a non standard
LC_MESSAGES locale:
t/02attribs.........209/249
# Failed test 'Database handle attribute "ReadOnly" prevents INSERT
queries from working when on'
# at t/02attribs.t line 1483.
# 'DBD::Pg::db do failed: FEHLER: Transaktion ist
Read-Only at t/02attribs.t line 1482.
# '
# doesn't match '(?-xism:transaction is read-only)'
This could be easily solved by setting LC_MESSAGES to 'C' explicitly.
Patch against dbdpg_test_setup.pl attached
Regards, Christoph Lamprecht
Subject: | dbdpg_test_setup.diff |
--- dbdpg_test_setup_ori.pl 2008-11-02 21:01:31.000000000 +0100
+++ dbdpg_test_setup.pl 2008-11-02 21:00:04.000000000 +0100
@@ -536,6 +536,7 @@
$dbh->{Warn} = 0;
$dbh->do($SQL);
$dbh->{Warn} = 1;
+ $dbh->do(q/SET LC_MESSAGES = 'C'/);
$dbh->do(q{COMMENT ON COLUMN dbd_pg_test.id IS 'Bob is your uncle'});
} ## end setup