summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorunknown <lars/lthalmann@dl145h.mysql.com>2007-05-24 09:07:35 +0200
committerunknown <lars/lthalmann@dl145h.mysql.com>2007-05-24 09:07:35 +0200
commit8ca545eca2fa5d575d3449380a938b2c55ebed65 (patch)
tree4e6471d31db618508710ada4dbc62d68c5112348 /mysql-test/mysql-test-run.pl
parent1da8ea2ee06f67b3e498520fe22900c748b31dcf (diff)
parenta53b80b3f3f187370d3360202b7849856ab9582a (diff)
downloadmariadb-git-8ca545eca2fa5d575d3449380a938b2c55ebed65.tar.gz
Merge mysql.com:/nfsdisk1/lars/bk/mysql-5.0-rpl
into mysql.com:/nfsdisk1/lars/bk/mysql-5.1-new-rpl mysql-test/mysql-test-run.pl: Auto merged mysql-test/t/disabled.def: Auto merged sql/sql_load.cc: Auto merged storage/heap/hp_hash.c: Auto merged BitKeeper/deleted/.del-rpl_critical_errors.result: Delete: mysql-test/r/rpl_critical_errors.result mysql-test/r/rpl_loaddata.result: Manual merge mysql-test/t/rpl_loaddata.test: Manual merge
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index a0517b71251..2803dc758d8 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -1813,6 +1813,18 @@ sub environment_setup () {
$ENV{'CHARSETSDIR'}= $path_charsetsdir;
$ENV{'UMASK'}= "0660"; # The octal *string*
$ENV{'UMASK_DIR'}= "0770"; # The octal *string*
+
+ #
+ # MySQL tests can produce output in various character sets
+ # (especially, ctype_xxx.test). To avoid confusing Perl
+ # with output which is incompatible with the current locale
+ # settings, we reset the current values of LC_ALL and LC_CTYPE to "C".
+ # For details, please see
+ # Bug#27636 tests fails if LC_* variables set to *_*.UTF-8
+ #
+ $ENV{'LC_ALL'}= "C";
+ $ENV{'LC_CTYPE'}= "C";
+
$ENV{'LC_COLLATE'}= "C";
$ENV{'USE_RUNNING_SERVER'}= $opt_extern;
$ENV{'MYSQL_TEST_DIR'}= $glob_mysql_test_dir;