This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Libidn sync
- From: Simon Josefsson <jas at extundo dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 22 Apr 2004 14:16:30 +0200
- Subject: Libidn sync
Just a minor sync. The code change is important, but only affect some
Stringprep profiles. Nameprep, which is the only profile libc uses,
is not affected. Thus, this is mostly in case someone in the future
experiment with using other profiles in libc, or copies code from libc
into another project which uses other profiles.
2004-04-22 Simon Josefsson <jas@extundo.com>
* stringprep.h, stringprep.c, idna.c: Update to latest libidn
version.
Index: idna.c
===================================================================
RCS file: /cvs/glibc/libc/libidn/idna.c,v
retrieving revision 1.3
diff -u -p -r1.3 idna.c
--- idna.c 14 Mar 2004 09:17:48 -0000 1.3
+++ idna.c 22 Apr 2004 12:10:48 -0000
@@ -778,6 +778,8 @@ idna_to_unicode_lzlz (const char *input,
* @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
Index: stringprep.c
===================================================================
RCS file: /cvs/glibc/libc/libidn/stringprep.c,v
retrieving revision 1.1
diff -u -p -r1.1 stringprep.c
--- stringprep.c 8 Mar 2004 03:54:02 -0000 1.1
+++ stringprep.c 22 Apr 2004 12:10:49 -0000
@@ -42,7 +42,7 @@ stringprep_find_character_in_table (uint
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;
Index: stringprep.h
===================================================================
RCS file: /cvs/glibc/libc/libidn/stringprep.h,v
retrieving revision 1.2
diff -u -p -r1.2 stringprep.h
--- stringprep.h 8 Mar 2004 18:29:34 -0000 1.2
+++ stringprep.h 22 Apr 2004 12:10:49 -0000
@@ -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