1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Added build option WITH_ICONV.

Default is OFF, which means MariaDB Connector/C
will be built without iconv support.

If set to OFF The API function mariadb_convert_string will always
return -1 and errorcode ENOTSUP.
This commit is contained in:
Georg Richter
2020-09-14 12:01:06 +02:00
parent ed9a6d419d
commit 7052619cc4
4 changed files with 27 additions and 6 deletions

View File

@@ -661,6 +661,10 @@ static int test_bug_54100(MYSQL *mysql)
static int test_utf16_utf32_noboms(MYSQL *mysql __attribute__((unused)))
{
#ifndef HAVE_ICONV
diag("MariaDB Connector/C was built without iconv support");
return SKIP;
#else
const char *csname[]= {"utf16", "utf16le", "utf32", "utf8"};
MARIADB_CHARSET_INFO *csinfo[sizeof(csname)/sizeof(char*)];
@@ -724,6 +728,7 @@ static int test_utf16_utf32_noboms(MYSQL *mysql __attribute__((unused)))
}
return OK;
#endif
}
static int charset_auto(MYSQL *my __attribute__((unused)))