summaryrefslogtreecommitdiff
path: root/mysql-test/main/ctype_hebrew.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/ctype_hebrew.test')
-rw-r--r--mysql-test/main/ctype_hebrew.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/main/ctype_hebrew.test b/mysql-test/main/ctype_hebrew.test
new file mode 100644
index 00000000000..f786d05141d
--- /dev/null
+++ b/mysql-test/main/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