From 2d7ae2107d3713981a66011ec62d094e32ec46fb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 May 2004 19:25:38 +0000 Subject: Update. * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention rt-sysdep. * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file. --- libidn/ChangeLog | 6 ++++++ libidn/idna.c | 2 ++ libidn/stringprep.c | 2 +- libidn/stringprep.h | 10 +++------- 4 files changed, 12 insertions(+), 8 deletions(-) (limited to 'libidn') 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 + + * stringprep.h: Update to latest libidn version. + * stringprep.c: Likewise. + * idna.c: Likewise. + 2004-03-14 Ulrich Drepper * 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 /* size_t */ #include /* ssize_t */ -#ifdef _LIBC -# include -#else -# include /* uint32_t */ -#endif +#include /* uint32_t */ -#define STRINGPREP_VERSION "0.4.1" +#define STRINGPREP_VERSION "0.4.3" /* Error codes. */ typedef enum -- cgit v1.1