delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/01/19/21:48:00

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=yyoR
0TN8oAsX/LZP744j05INRg7xywI/1qq0mhansOYDypgIsaoYc9mLGfGY9rPxuMTz
eyzExNwPjoZnptHs1HWmxgawJH0VF35JRAl8YXX+MtJxAUxYs8Rl/Dz4jS4dbA/e
4xuSN2kHDTQ2/F2rdjNlJtaJm/2DhHOSCjJEgp4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=49EV99s2vb
SiNDxBhHe7H3mVXEE=; b=e7MUX9/L7/RzJhox7PfiWK2da40Ghhn2DxWvUcaBdr
/6g1OTn4/MPGBDIAtp965Bj55jACDs100+McS4oTBiEzzckgrj0xOkPkRDL1TjCk
8oq5oB+sFAVHDv7quCtdJRc0oxutaEMhrXbN6iUq6AU5cDqXwt+AMrpkVosAiBo8
g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-HELO: mx1.redhat.com
Subject: Re: [PATCH] localename: Port to cygwin 2.6.
To: bug-gnulib AT gnu DOT org
References: <20170119203057 DOT 13986-1-eblake AT redhat DOT com>
Cc: cygwin AT cygwin DOT com
From: Eric Blake <eblake AT redhat DOT com>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Message-ID: <737a9fb1-0598-c6eb-e720-6d7b20f196b4@redhat.com>
Date: Thu, 19 Jan 2017 20:47:29 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <20170119203057.13986-1-eblake@redhat.com>
X-IsSubscribed: yes

--mfgvu2Hl9pu07FcEoClgXjWVBPB1kGh9K
Content-Type: multipart/mixed; boundary="minCUk8Ok5QISTpHO2KFFotRQaw7IHw3G";
 protected-headers="v1"
From: Eric Blake <eblake AT redhat DOT com>
To: bug-gnulib AT gnu DOT org
Cc: cygwin AT cygwin DOT com
Message-ID: <737a9fb1-0598-c6eb-e720-6d7b20f196b4 AT redhat DOT com>
Subject: Re: [PATCH] localename: Port to cygwin 2.6.
References: <20170119203057 DOT 13986-1-eblake AT redhat DOT com>
In-Reply-To: <20170119203057 DOT 13986-1-eblake AT redhat DOT com>


--minCUk8Ok5QISTpHO2KFFotRQaw7IHw3G
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 01/19/2017 02:30 PM, Eric Blake wrote:
> Cygwin 2.6 introduced uselocale() and thread-local locales in general,
> but lacks any way to get at the name of each portion of a locale_t
> object short of peeking behind an opaque object.  I'm proposing a
> patch to add NL_LOCALE_NAME() to Cygwin patterned after glibc's
> extension of the same name, but we might as well work around it
> in the meantime.
>=20
> * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
> Cygwin.
>=20
> Signed-off-by: Eric Blake <eblake AT redhat DOT com>
> ---
>=20
> I won't actually push this to gnulib until I've sent the corresponding
> newlib/Cygwin patch to add NL_LOCALE_NAME, and tweaked the commit
> messages of both patches to refer to the appropriate mailing list
> threads.  But this was enough to get test-localename passing on
> Cygwin again.

> +#   ifdef NL_LOCALE_NAME
> +        return nl_langinfo_l (NL_LOCALE_NAME (category), thread_locale);

Here's the proposed cygwin patch for adding NL_LOCALE_NAME():
https://sourceware.org/ml/newlib/2017/msg00071.html

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--minCUk8Ok5QISTpHO2KFFotRQaw7IHw3G--

--mfgvu2Hl9pu07FcEoClgXjWVBPB1kGh9K
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJYgXpBAAoJEKeha0olJ0NqLm8H/RaM0QzPGTX+BzcERBr4I8hg
79MI+O7lNFF3Chmkc4yc1TFafnX3QiXuWB6ugJHaPSv/n2qDIxp8lpS9XU0QcBqt
zx+/scu096p0wPy3eBYkWrLGx5Wnhwmx7HuvyWaV8oZ7IVHxtYStNW44Yq1h2NBK
oZNeekFFvkg66ByFj/JVtOsCKxVYgYtq6y5DRXdqbbAi+OjE4q2imSr7fmXXzDno
zwK2zYFOGxstlrkIvlaDIpHmFGYeEJCK8ve5vpLJmrPrI5Klq5nfGE0PCK/Mocdp
sPB6YKQreejpE5hMZVMl92koblaFs4okoSlJ2QEYoFB0ua+AvQpkWIvqDOwGwm0=
=CyG4
-----END PGP SIGNATURE-----

--mfgvu2Hl9pu07FcEoClgXjWVBPB1kGh9K--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019