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
1c64b2c0
Commit
1c64b2c0
authored
Oct 27, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf_to_src.c:
Dump MY_CS_CSSORT when it's necessary.
parent
8bd04bf7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
strings/conf_to_src.c
strings/conf_to_src.c
+11
-2
No files found.
strings/conf_to_src.c
View file @
1c64b2c0
...
...
@@ -169,13 +169,22 @@ static int my_read_charset_file(const char *filename)
return
FALSE
;
}
static
int
is_case_sensitive
(
CHARSET_INFO
*
cs
)
{
return
(
cs
->
sort_order
&&
cs
->
sort_order
[
'A'
]
<
cs
->
sort_order
[
'a'
]
&&
cs
->
sort_order
[
'a'
]
<
cs
->
sort_order
[
'B'
])
?
1
:
0
;
}
void
dispcset
(
FILE
*
f
,
CHARSET_INFO
*
cs
)
{
fprintf
(
f
,
"{
\n
"
);
fprintf
(
f
,
" %d,%d,%d,
\n
"
,
cs
->
number
,
0
,
0
);
fprintf
(
f
,
" MY_CS_COMPILED%s%s,
\n
"
,
fprintf
(
f
,
" MY_CS_COMPILED%s%s
%s
,
\n
"
,
cs
->
state
&
MY_CS_BINSORT
?
"|MY_CS_BINSORT"
:
""
,
cs
->
state
&
MY_CS_PRIMARY
?
"|MY_CS_PRIMARY"
:
""
);
cs
->
state
&
MY_CS_PRIMARY
?
"|MY_CS_PRIMARY"
:
""
,
is_case_sensitive
(
cs
)
?
"|MY_CS_CSSORT"
:
""
);
if
(
cs
->
name
)
{
...
...
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