From a9e60bab2917d263db14f9543b4af9f230155b46 Mon Sep 17 00:00:00 2001
From: "msvensson@shellback.(none)" <>
Date: Sat, 14 Oct 2006 17:09:06 +0200
Subject: [PATCH] Use char as datatype for the byte that are read with
 my_fgetc, fixes problem with mysqltest.test on Solaris and Mac. write_file
 produced nice files with all zeroes.

---
 client/mysqltest.c           | 2 +-
 mysql-test/mysql-test-run.pl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/mysqltest.c b/client/mysqltest.c
index 7029e0af3e1..efb5f1915f4 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -1810,7 +1810,7 @@ void my_ungetc(int c)
 void read_until_delimiter(DYNAMIC_STRING *ds,
                           DYNAMIC_STRING *ds_delimiter)
 {
-  int c;
+  char c;
   DBUG_ENTER("read_until_delimiter");
   DBUG_PRINT("enter", ("delimiter: %s, length: %d",
                        ds_delimiter->str, ds_delimiter->length));
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 79f01c3cb68..35782733b20 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -1421,7 +1421,7 @@ sub executable_setup () {
   {
     # Skip looking for exe_mysql_client_test as its not built by default
     # in 4.1 for windows.
-    exe_mysql_client_test= "unavailable";
+    $exe_mysql_client_test= "unavailable";
   }
   else
   {
-- 
2.30.9