respect test data being always UTF-8

This commit is contained in:
Tim Ruehsen 2014-06-18 12:41:23 +02:00
parent e6e0f7759f
commit 9aea73fb64
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ static void test(const psl_ctx_t *psl, const char *domain, const char *expected_
const char *result;
char *lower;
if (psl_str_to_utf8lower(domain, NULL, NULL, &lower) == 0)
/* our test data is fixed to UTF-8 (english), so provide it here */
if (psl_str_to_utf8lower(domain, "utf-8", "en", &lower) == 0)
domain = lower;
result = psl_registrable_domain(psl, domain);