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
a5cc38fa
Commit
a5cc38fa
authored
Sep 23, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
charset.c:
comp_err failed to compile error message file when a character set was not incompiled.
parent
88a3651d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
mysys/charset.c
mysys/charset.c
+14
-0
No files found.
mysys/charset.c
View file @
a5cc38fa
...
@@ -307,9 +307,23 @@ static int add_collation(CHARSET_INFO *cs)
...
@@ -307,9 +307,23 @@ static int add_collation(CHARSET_INFO *cs)
}
}
else
else
{
{
/*
We need the below to make get_charset_name()
and get_charset_number() working even if a
character set has not been really incompiled.
The above functions are used for example
in error message compiler extra/comp_err.c.
If a character set was compiled, this information
will get lost and overwritten in add_compiled_collation().
*/
CHARSET_INFO
*
dst
=
all_charsets
[
cs
->
number
];
CHARSET_INFO
*
dst
=
all_charsets
[
cs
->
number
];
dst
->
number
=
cs
->
number
;
if
(
cs
->
comment
)
if
(
cs
->
comment
)
dst
->
comment
=
my_once_strdup
(
cs
->
comment
,
MYF
(
MY_WME
));
dst
->
comment
=
my_once_strdup
(
cs
->
comment
,
MYF
(
MY_WME
));
if
(
cs
->
csname
)
dst
->
csname
=
my_once_strdup
(
cs
->
csname
,
MYF
(
MY_WME
));
if
(
cs
->
name
)
dst
->
name
=
my_once_strdup
(
cs
->
name
,
MYF
(
MY_WME
));
}
}
cs
->
number
=
0
;
cs
->
number
=
0
;
cs
->
primary_number
=
0
;
cs
->
primary_number
=
0
;
...
...
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