~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/* Copyright (C) 2000 MySQL AB
2
3
   This program is free software; you can redistribute it and/or modify
4
   it under the terms of the GNU General Public License as published by
5
   the Free Software Foundation; version 2 of the License.
6
7
   This program is distributed in the hope that it will be useful,
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
   GNU General Public License for more details.
11
12
   You should have received a copy of the GNU General Public License
13
   along with this program; if not, write to the Free Software
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
994.2.4 by Monty Taylor
Blast. Fixed some make distcheck issues.
16
#include "mysys/mysys_priv.h"
1 by brian
clean slate
17
18
/*
19
  Include all compiled character sets into the client
20
  If a client don't want to use all of them, he can define his own
21
  init_compiled_charsets() that only adds those that he wants
22
*/
23
24
extern CHARSET_INFO my_charset_utf8mb4_icelandic_uca_ci;
25
extern CHARSET_INFO my_charset_utf8mb4_latvian_uca_ci;
26
extern CHARSET_INFO my_charset_utf8mb4_romanian_uca_ci;
27
extern CHARSET_INFO my_charset_utf8mb4_slovenian_uca_ci;
28
extern CHARSET_INFO my_charset_utf8mb4_polish_uca_ci;
29
extern CHARSET_INFO my_charset_utf8mb4_estonian_uca_ci;
30
extern CHARSET_INFO my_charset_utf8mb4_spanish_uca_ci;
31
extern CHARSET_INFO my_charset_utf8mb4_swedish_uca_ci;
32
extern CHARSET_INFO my_charset_utf8mb4_turkish_uca_ci;
33
extern CHARSET_INFO my_charset_utf8mb4_czech_uca_ci;
34
extern CHARSET_INFO my_charset_utf8mb4_danish_uca_ci;
35
extern CHARSET_INFO my_charset_utf8mb4_lithuanian_uca_ci;
36
extern CHARSET_INFO my_charset_utf8mb4_slovak_uca_ci;
37
extern CHARSET_INFO my_charset_utf8mb4_spanish2_uca_ci;
38
extern CHARSET_INFO my_charset_utf8mb4_roman_uca_ci;
39
extern CHARSET_INFO my_charset_utf8mb4_persian_uca_ci;
40
extern CHARSET_INFO my_charset_utf8mb4_esperanto_uca_ci;
41
extern CHARSET_INFO my_charset_utf8mb4_hungarian_uca_ci;
42
extern CHARSET_INFO my_charset_utf8mb4_sinhala_uca_ci;
43
44
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
45
bool init_compiled_charsets(myf)
1 by brian
clean slate
46
{
47
  CHARSET_INFO *cs;
48
49
  add_compiled_collation(&my_charset_bin);
50
51
  add_compiled_collation(&my_charset_utf8mb4_general_ci);
52
  add_compiled_collation(&my_charset_utf8mb4_bin);
53
  add_compiled_collation(&my_charset_utf8mb4_unicode_ci);
54
  add_compiled_collation(&my_charset_utf8mb4_icelandic_uca_ci);
55
  add_compiled_collation(&my_charset_utf8mb4_latvian_uca_ci);
56
  add_compiled_collation(&my_charset_utf8mb4_romanian_uca_ci);
57
  add_compiled_collation(&my_charset_utf8mb4_slovenian_uca_ci);
58
  add_compiled_collation(&my_charset_utf8mb4_polish_uca_ci);
59
  add_compiled_collation(&my_charset_utf8mb4_estonian_uca_ci);
60
  add_compiled_collation(&my_charset_utf8mb4_spanish_uca_ci);
61
  add_compiled_collation(&my_charset_utf8mb4_swedish_uca_ci);
62
  add_compiled_collation(&my_charset_utf8mb4_turkish_uca_ci);
63
  add_compiled_collation(&my_charset_utf8mb4_czech_uca_ci);
64
  add_compiled_collation(&my_charset_utf8mb4_danish_uca_ci);
65
  add_compiled_collation(&my_charset_utf8mb4_lithuanian_uca_ci);
66
  add_compiled_collation(&my_charset_utf8mb4_slovak_uca_ci);
67
  add_compiled_collation(&my_charset_utf8mb4_spanish2_uca_ci);
68
  add_compiled_collation(&my_charset_utf8mb4_roman_uca_ci);
69
  add_compiled_collation(&my_charset_utf8mb4_persian_uca_ci);
70
  add_compiled_collation(&my_charset_utf8mb4_esperanto_uca_ci);
71
  add_compiled_collation(&my_charset_utf8mb4_hungarian_uca_ci);
72
  add_compiled_collation(&my_charset_utf8mb4_sinhala_uca_ci);
73
74
  /* Copy compiled charsets */
75
  for (cs=compiled_charsets; cs->name; cs++)
76
    add_compiled_collation(cs);
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
77
163 by Brian Aker
Merge Monty's code.
78
  return false;
1 by brian
clean slate
79
}