[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS libidn/tests
From: |
libidn-commit |
Subject: |
CVS libidn/tests |
Date: |
Mon, 9 Jan 2006 16:27:22 +0100 |
Update of /home/cvs/libidn/tests
In directory dopio:/tmp/cvs-serv27971
Modified Files:
tst_idna2.c
Log Message:
Print USC4 code point numbers too.
--- /home/cvs/libidn/tests/tst_idna2.c 2005/05/26 14:39:59 1.11
+++ /home/cvs/libidn/tests/tst_idna2.c 2006/01/09 15:27:22 1.12
@@ -1,5 +1,5 @@
/* tst_idna2.c --- Self tests for idna_to_ascii_8z().
- * Copyright (C) 2002, 2003, 2004 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2006 Simon Josefsson
*
* This file is part of GNU Libidn.
*
@@ -473,9 +473,14 @@
if (debug)
{
+ uint32_t *p;
+ size_t len;
printf ("in: %s\n", idna[i].in);
hexprint (idna[i].in, strlen (idna[i].in));
escapeprint (idna[i].in, strlen (idna[i].in));
+ p = stringprep_utf8_to_ucs4 (idna[i].in, -1, &len);
+ ucs4print (p, len);
+ free (p);
}
rc = idna_to_ascii_8z (idna[i].in, &out,
- CVS libidn/tests,
libidn-commit <=