aboutsummaryrefslogtreecommitdiff
path: root/libidn
diff options
context:
space:
mode:
Diffstat (limited to 'libidn')
-rw-r--r--libidn/ChangeLog6
-rw-r--r--libidn/idna.c2
-rw-r--r--libidn/stringprep.c2
-rw-r--r--libidn/stringprep.h10
4 files changed, 12 insertions, 8 deletions
diff --git a/libidn/ChangeLog b/libidn/ChangeLog
index 17e00a6..045a1e6 100644
--- a/libidn/ChangeLog
+++ b/libidn/ChangeLog
@@ -1,3 +1,9 @@
+2004-04-22 Simon Josefsson <jas@extundo.com>
+
+ * stringprep.h: Update to latest libidn version.
+ * stringprep.c: Likewise.
+ * idna.c: Likewise.
+
2004-03-14 Ulrich Drepper <drepper@redhat.com>
* idn-stub.c (__idna_to_unicode_lzlz): Use __strchrnul, not strchrnul.
diff --git a/libidn/idna.c b/libidn/idna.c
index 69c928f..bf692c0 100644
--- a/libidn/idna.c
+++ b/libidn/idna.c
@@ -778,6 +778,8 @@ idna_to_unicode_lzlz (const char *input, char **output, int flags)
* @IDNA_ICONV_ERROR: Could not convert string in locale encoding.
* @IDNA_MALLOC_ERROR: Could not allocate buffer (this is typically a
* fatal error).
+ * @IDNA_DLOPEN_ERROR: Could not dlopen the libcidn DSO (only used
+ * internally in libc).
*
* Enumerated return codes of idna_to_ascii_4i(),
* idna_to_unicode_44i() functions (and functions derived from those
diff --git a/libidn/stringprep.c b/libidn/stringprep.c
index 357f9e9..1841b36 100644
--- a/libidn/stringprep.c
+++ b/libidn/stringprep.c
@@ -42,7 +42,7 @@ stringprep_find_character_in_table (uint32_t ucs4,
mostly interested in having someone give real-world benchmark on
the impact of libidn.) */
- for (i = 0; table[i].start; i++)
+ for (i = 0; table[i].start || table[i].end; i++)
if (ucs4 >= table[i].start &&
ucs4 <= (table[i].end ? table[i].end : table[i].start))
return i;
diff --git a/libidn/stringprep.h b/libidn/stringprep.h
index 5f504e8..dcc30b3 100644
--- a/libidn/stringprep.h
+++ b/libidn/stringprep.h
@@ -1,5 +1,5 @@
/* stringprep.h Header file for stringprep functions. -*- c -*-
- * Copyright (C) 2002, 2003 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004 Simon Josefsson
*
* This file is part of GNU Libidn.
*
@@ -29,13 +29,9 @@ extern "C"
#include <stddef.h> /* size_t */
#include <unistd.h> /* ssize_t */
-#ifdef _LIBC
-# include <stdint.h>
-#else
-# include <idn-int.h> /* uint32_t */
-#endif
+#include <stdint.h> /* uint32_t */
-#define STRINGPREP_VERSION "0.4.1"
+#define STRINGPREP_VERSION "0.4.3"
/* Error codes. */
typedef enum