summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <kaa@polly.local>2006-12-22 16:19:45 +0300
committerunknown <kaa@polly.local>2006-12-22 16:19:45 +0300
commit368dcac4f821d69d68e16caebd7599b55ead1a65 (patch)
treeb51424a81da8fcdcc6f6d2122b4206d3b5b857ce /mysql-test
parent2218cbb059029395314c31efc963dc93562c041d (diff)
parentee37cf0bb9fcb420227dac009324d355d19bd22e (diff)
downloadmariadb-git-368dcac4f821d69d68e16caebd7599b55ead1a65.tar.gz
Merge polly.local:/tmp/maint/bug24037/my41-bug24037
into polly.local:/home/kaa/src/maint/mysql-4.1-maint
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/ctype_hebrew.result11
-rw-r--r--mysql-test/t/ctype_hebrew.test16
2 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/r/ctype_hebrew.result b/mysql-test/r/ctype_hebrew.result
new file mode 100644
index 00000000000..d938b2e47f3
--- /dev/null
+++ b/mysql-test/r/ctype_hebrew.result
@@ -0,0 +1,11 @@
+DROP TABLE IF EXISTS t1;
+SET NAMES hebrew;
+CREATE TABLE t1 (a char(1)) DEFAULT CHARSET=hebrew;
+INSERT INTO t1 VALUES (0xFD),(0xFE);
+ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
+SELECT HEX(a) FROM t1;
+HEX(a)
+E2808E
+E2808F
+DROP TABLE t1;
+End of 4.1 tests
diff --git a/mysql-test/t/ctype_hebrew.test b/mysql-test/t/ctype_hebrew.test
new file mode 100644
index 00000000000..f786d05141d
--- /dev/null
+++ b/mysql-test/t/ctype_hebrew.test
@@ -0,0 +1,16 @@
+#
+# BUG #24037: Lossy Hebrew to Unicode conversion
+#
+# Test if LRM and RLM characters are correctly converted to UTF-8
+--disable_warnings
+DROP TABLE IF EXISTS t1;
+--enable_warnings
+
+SET NAMES hebrew;
+CREATE TABLE t1 (a char(1)) DEFAULT CHARSET=hebrew;
+INSERT INTO t1 VALUES (0xFD),(0xFE);
+ALTER TABLE t1 CONVERT TO CHARACTER SET utf8;
+SELECT HEX(a) FROM t1;
+DROP TABLE t1;
+
+--echo End of 4.1 tests