diff options
author | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-03-28 17:31:46 +0400 |
---|---|---|
committer | unknown <bar@gw.udmsearch.izhnet.ru> | 2002-03-28 17:31:46 +0400 |
commit | 437b0b0e871350b8937c8d37c9c2b2f05299bfb7 (patch) | |
tree | 4cad758c67f547af94b1846b1edf97d37c6862de /sql/init.cc | |
parent | dae6e2c67b4e936d910f266c46b510565c1b54f0 (diff) | |
download | mariadb-git-437b0b0e871350b8937c8d37c9c2b2f05299bfb7.tar.gz |
New UTF8 charset
strings/ctype-big5.c:
New format for mb char functions
strings/ctype-euc_kr.c:
New format for mb char functions
strings/ctype-gb2312.c:
New format for mb char functions
strings/ctype-gbk.c:
New format for mb char functions
strings/ctype-sjis.c:
New format for mb char functions
strings/ctype-ujis.c:
New format for mb char functions
Diffstat (limited to 'sql/init.cc')
-rw-r--r-- | sql/init.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/init.cc b/sql/init.cc index fe80c282563..eea10e51bd8 100644 --- a/sql/init.cc +++ b/sql/init.cc @@ -57,7 +57,10 @@ void unireg_init(ulong options) for (cs=compiled_charsets; cs->number; cs++) { - uchar max_char=cs->sort_order[(uchar) cs->max_sort_char]; + uchar max_char; + if (!cs->sort_order) + continue; + cs->sort_order[(uchar) cs->max_sort_char]; for (i = 0; i < 256; i++) { if ((uchar) cs->sort_order[i] > max_char) |