Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dcb0f52e
Commit
dcb0f52e
authored
Feb 18, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge: don't add this into configure in as it is already in
config/ac-macros/character_sets.m4
parents
fe8c9e49
c926e43f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
mysys/charset-def.c
mysys/charset-def.c
+8
-0
mysys/charset.c
mysys/charset.c
+1
-1
strings/ctype-uca.c
strings/ctype-uca.c
+4
-1
No files found.
mysys/charset-def.c
View file @
dcb0f52e
...
...
@@ -22,6 +22,8 @@
init_compiled_charsets() that only adds those that he wants
*/
#ifdef HAVE_UCA_COLLATIONS
#ifdef HAVE_CHARSET_ucs2
extern
CHARSET_INFO
my_charset_ucs2_general_uca
;
extern
CHARSET_INFO
my_charset_ucs2_icelandic_uca_ci
;
...
...
@@ -62,6 +64,8 @@ extern CHARSET_INFO my_charset_utf8_roman_uca_ci;
extern
CHARSET_INFO
my_charset_utf8_persian_uca_ci
;
#endif
#endif
/* HAVE_UCA_COLLATIONS */
my_bool
init_compiled_charsets
(
myf
flags
__attribute__
((
unused
)))
{
CHARSET_INFO
*
cs
;
...
...
@@ -123,6 +127,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
#ifdef HAVE_CHARSET_ucs2
add_compiled_collation
(
&
my_charset_ucs2_general_ci
);
add_compiled_collation
(
&
my_charset_ucs2_bin
);
#ifdef HAVE_UCA_COLLATIONS
add_compiled_collation
(
&
my_charset_ucs2_general_uca
);
add_compiled_collation
(
&
my_charset_ucs2_icelandic_uca_ci
);
add_compiled_collation
(
&
my_charset_ucs2_latvian_uca_ci
);
...
...
@@ -141,6 +146,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation
(
&
my_charset_ucs2_roman_uca_ci
);
add_compiled_collation
(
&
my_charset_ucs2_persian_uca_ci
);
#endif
#endif
#ifdef HAVE_CHARSET_ujis
add_compiled_collation
(
&
my_charset_ujis_japanese_ci
);
...
...
@@ -150,6 +156,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
#ifdef HAVE_CHARSET_utf8
add_compiled_collation
(
&
my_charset_utf8_general_ci
);
add_compiled_collation
(
&
my_charset_utf8_bin
);
#ifdef HAVE_UCA_COLLATIONS
add_compiled_collation
(
&
my_charset_utf8_general_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_icelandic_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_latvian_uca_ci
);
...
...
@@ -167,6 +174,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation
(
&
my_charset_utf8_spanish2_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_roman_uca_ci
);
add_compiled_collation
(
&
my_charset_utf8_persian_uca_ci
);
#endif
#endif
/* Copy compiled charsets */
...
...
mysys/charset.c
View file @
dcb0f52e
...
...
@@ -215,7 +215,7 @@ static int add_collation(CHARSET_INFO *cs)
if
(
!
strcmp
(
cs
->
csname
,
"ucs2"
)
)
{
#if
def HAVE_CHARSET_ucs2
#if
defined(HAVE_CHARSET_ucs2) && defined(HAVE_UCA_COLLATIONS)
new
->
cset
=
my_charset_ucs2_general_uca
.
cset
;
new
->
coll
=
my_charset_ucs2_general_uca
.
coll
;
new
->
strxfrm_multiply
=
my_charset_ucs2_general_uca
.
strxfrm_multiply
;
...
...
strings/ctype-uca.c
View file @
dcb0f52e
...
...
@@ -36,6 +36,7 @@
#include "m_string.h"
#include "m_ctype.h"
#ifdef HAVE_UCA_COLLATIONS
#define MY_UCA_NPAGES 256
#define MY_UCA_NCHARS 256
...
...
@@ -9002,4 +9003,6 @@ CHARSET_INFO my_charset_utf8_persian_uca_ci=
&
my_collation_any_uca_handler
};
#endif
#endif
/* HAVE_CHARSET_utf8 */
#endif
/* HAVE_UCA_COLLATIONS */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment