From 2a62b81242a9072f9a6046b936e33ed9844eb916 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 25 Aug 2003 16:31:57 +0000 Subject: [PATCH] Really call ToUnicode instead of ToASCII. Reported by Trond Haugen . --- examples/example4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/example4.c b/examples/example4.c index d25bb89..39541ee 100644 --- a/examples/example4.c +++ b/examples/example4.c @@ -1,4 +1,4 @@ -/* example4.c Example code showing how to use Libidn. +/* example4.c Example ToUnicode() code showing how to use Libidn. * Copyright (C) 2002, 2003 Simon Josefsson * * This file is part of GNU Libidn. @@ -23,7 +23,7 @@ #include #include #include /* stringprep_locale_charset() */ -#include /* idna_to_ascii_lz() */ +#include /* idna_to_unicode_lzlz() */ /* * Compiling using libtool and pkg-config is recommended: @@ -56,7 +56,7 @@ main (int argc, char *argv[]) printf ("%02x ", buf[i] & 0xFF); printf ("\n"); - rc = idna_to_ascii_lz (buf, &p, 0); + rc = idna_to_unicode_lzlz (buf, &p, 0); if (rc != IDNA_SUCCESS) { printf ("ToUnicode() failed... %d\n", rc); -- 2.11.4.GIT