From a3596a5e3ec4937a220e6e60218639e2aba82701 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 13 May 2005 23:18:13 +0000 Subject: * utf-8 collation of domain names * case insensitive comparison of domain names git-svn-id: file:///home/lennart/svn/public/avahi/trunk@71 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/domain-test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'avahi-core/domain-test.c') diff --git a/avahi-core/domain-test.c b/avahi-core/domain-test.c index 7f6bd7b..240f960 100644 --- a/avahi-core/domain-test.c +++ b/avahi-core/domain-test.c @@ -34,11 +34,15 @@ int main(int argc, char *argv[]) { g_message("%s", s = avahi_normalize_name("foo.foo.")); g_free(s); - g_message("%s", s = avahi_normalize_name("foo.foo.")); + g_message("%s", s = avahi_normalize_name("\\f\\o\\\\o\\..\\f\\ \\o\\o.")); g_free(s); - g_message("%i", avahi_domain_equal("\\aaa bbb\\.cccc\\\\.dee.fff.", "aaa\\ bbb\\.cccc\\\\.dee.fff")); + g_message("%i", avahi_domain_equal("\\A", "a")); + g_message("%i", avahi_domain_equal("a", "aaa")); + + g_message("%u = %u", avahi_domain_hash("\\Aaaab\\\\."), avahi_domain_hash("aaaa\\b\\\\")); + return 0; } -- cgit