You've already forked mariadb-connector-c
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:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user