Browse Source
Bug#27877 incorrect german order in utf8_general_ci
Bug#27877 incorrect german order in utf8_general_ci
Problem: incorrect sort order for "U+00DF SHARP S". Fix: changing sort order for U+00DF to be equal to 's', like the manual says.pull/73/head
10 changed files with 185 additions and 1 deletions
-
40mysql-test/include/ctype_german.inc
-
35mysql-test/r/ctype_latin1_de.result
-
35mysql-test/r/ctype_uca.result
-
35mysql-test/r/ctype_ucs.result
-
35mysql-test/r/ctype_utf8.result
-
1mysql-test/t/ctype_latin1_de.test
-
1mysql-test/t/ctype_uca.test
-
1mysql-test/t/ctype_ucs.test
-
1mysql-test/t/ctype_utf8.test
-
2strings/ctype-utf8.c
@ -0,0 +1,40 @@ |
|||
# |
|||
# Bug #27877 incorrect german order in utf8_general_ci |
|||
# |
|||
# Testing if "SHARP S" is equal to "S", |
|||
# like in latin1_german1_ci, utf8_general_ci, ucs2_general_ci |
|||
# Or if "SHART S" is equal to "SS", |
|||
# like in latin1_german2_ci, utf8_unicode_ci, ucs2_unicode_ci |
|||
# |
|||
# Also testing A-uml, O-uml, U-uml |
|||
# |
|||
|
|||
--disable_warnings |
|||
drop table if exists t1; |
|||
--enable_warnings |
|||
|
|||
# |
|||
# Create a table with a varchar(x) column, |
|||
# using current values of |
|||
# @@character_set_connection and @@collation_connection. |
|||
# |
|||
|
|||
create table t1 as select repeat(' ', 64) as s1; |
|||
select collation(s1) from t1; |
|||
delete from t1; |
|||
|
|||
# |
|||
# Populate data |
|||
# |
|||
|
|||
insert into t1 values ('a'),('ae'),(_latin1 0xE4); |
|||
insert into t1 values ('o'),('oe'),(_latin1 0xF6); |
|||
insert into t1 values ('s'),('ss'),(_latin1 0xDF); |
|||
insert into t1 values ('u'),('ue'),(_latin1 0xFC); |
|||
|
|||
# |
|||
# Check order |
|||
# |
|||
select s1, hex(s1) from t1 order by s1, binary s1; |
|||
select group_concat(s1 order by binary s1) from t1 group by s1; |
|||
drop table t1; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue