summaryrefslogtreecommitdiff
path: root/mysys/test_charset.c
diff options
context:
space:
mode:
authorroot@home.(none) <>2003-03-16 10:56:14 +0400
committerroot@home.(none) <>2003-03-16 10:56:14 +0400
commitf71a7e4b05df7cbf925bbb16d4b24c43b2165ec1 (patch)
tree460a8abc4de11ac2745df4507cc3edbbda326194 /mysys/test_charset.c
parentdfe65d32812450dabf96f9ee4e7ba48ccf6b5cf7 (diff)
downloadmariadb-git-f71a7e4b05df7cbf925bbb16d4b24c43b2165ec1.tar.gz
set_default_charset() is not used anymore
Some system_charset_info were removed
Diffstat (limited to 'mysys/test_charset.c')
-rw-r--r--mysys/test_charset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysys/test_charset.c b/mysys/test_charset.c
index d031007a1da..6b0f728593a 100644
--- a/mysys/test_charset.c
+++ b/mysys/test_charset.c
@@ -58,6 +58,7 @@ int main(int argc, char **argv) {
const char *the_set = MYSQL_CHARSET;
char *cs_list;
int argcnt = 1;
+ CHARSET_INFO *cs;
my_init();
@@ -70,11 +71,11 @@ int main(int argc, char **argv) {
if (argc > argcnt)
charsets_dir = argv[argcnt++];
- if (set_default_charset_by_name(the_set, MYF(MY_WME)))
+ if (!(cs= get_charset_by_name(the_set, MYF(MY_WME))))
return 1;
puts("CHARSET INFO:");
- _print_csinfo(default_charset_info);
+ _print_csinfo(cs);
fflush(stdout);
cs_list = list_charsets(MYF(MY_CS_COMPILED | MY_CS_CONFIG));