RFC: IDN support in getaddrinfo().
Andreas Jaeger
aj@suse.de
Mon Mar 8 07:52:00 GMT 2004
Ulrich Drepper <drepper@redhat.com> writes:
> Andreas Jaeger wrote:
>
>> What about the following?
>
> Incomplete and incorrect. The file name is libcidn. And the file name
> in idn-stub.c must come from gnu/lib-names.h.
What about the following patch? Compilation was successfull.
Ok to commit?
Andreas
2004-03-08 Andreas Jaeger <aj@suse.de>
* idn-stub.c (__idna_to_ascii_lz): Use LIBCIDN_SO.
Include <gnu/lib-names.h> for LIBCIDN_SO.
* shlib-versions: New file.
============================================================
Index: libidn/idn-stub.c
--- libidn/idn-stub.c 8 Mar 2004 04:16:12 -0000 1.2
+++ libidn/idn-stub.c 8 Mar 2004 07:48:15 -0000
@@ -24,6 +24,7 @@
#include <string.h>
#include <dlfcn.h>
#include <bits/libc-lock.h>
+#include <gnu/lib-names.h>
/* Get specification for idna_to_ascii_lz. */
#include "idna.h"
@@ -61,7 +62,7 @@ __idna_to_ascii_lz (const char *input, c
/* Retest in case some other thread arrived here at the same time. */
if (h == NULL)
{
- h = __libc_dlopen ("libcidn.so");
+ h = __libc_dlopen (LIBCIDN_SO);
if (h == NULL)
h = (void *) 1l;
============================================================
Index: libidn/shlib-versions
--- libidn/shlib-versions created
+++ libidn/shlib-versions 2004-03-08 08:44:54.769610307 +0100 1.1
@@ -0,0 +1 @@
+.*-.*-.* libcidn=1
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040308/3ebba684/attachment.sig>
More information about the Libc-alpha
mailing list