I'm not sure how many people use a Galician or Tamil locale on macOS. But
anyway:
2025-02-12 Bruno Haible
setlocale: Update info about Galician and Tamil.
* lib/setlocale.c (locales_with_principal_territory): Galician is
mostly spoken in Spain, not Portugal. Tamil is
A testdir of 'getaddrinfo' fails to compile on native Windows:
../../gltests/../gllib/gettext.h:129:67: Fehler: »LC_MESSAGES« nicht deklariert
(erste Benutzung in dieser Funktion)
pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
Testing reveals that getaddrinfo does not support AI_NUMERICSERV on mingw.
This patch adds the support for it.
2025-02-12 Bruno Haible
getaddrinfo: Support the AI_NUMERICSERV flag.
* m4/getaddrinfo.m4 (gl_GETADDRINFO): Require AC_CANONICAL_HOST. Test
whether getaddrinf
KO Myung-Hun wrote:
> + if (hints && (hints->ai_flags & AI_NUMERICHOST))
> +{
> + int valid = 0;
> +
> +# ifdef HAVE_IPV6
> + valid |= !valid &&
> + (hints->ai_family == AF_INET6 ||
> +hints->ai_family == AF_UNSPEC) &&
> + inet_pton (AF_INE
KO Myung-Hun wrote:
> - res = getaddrinfo (host, service, NULL, &ai0);
> + res = getaddrinfo (host, service, &hints, &ai0);
This removes a useful test, namely whether getaddrinfo() works with a
NULL hints pointer. The proper way to fix this test is like this:
2025-02-12 Bruno Haible
KO Myung-Hun wrote:
> diff --git a/lib/netdb.in.h b/lib/netdb.in.h
> index e8ba8f0978..9cad2d937a 100644
> --- a/lib/netdb.in.h
> +++ b/lib/netdb.in.h
> @@ -103,7 +103,7 @@ struct addrinfo
> # define AI_NUMERICSERV0x0400 /* Don't use name resolution. */
> # endif
>
> -# if 0
> +# ifn
Hi/2.
Bruno Haible wrote:
> KO Myung-Hun wrote:
>> These are the patches to support AI_NUMERICSERV and AI_NUMERICHOST flag
>> to getaddrinfo().
>>
>> Review, please...
>>
>> [PATCH 1/2] getaddrinfo: Add AI_NUMERICSERV to the supported flags
>> [PATCH 2/2] getaddrinfo: Add AI_NUMERICHOST flag suppo