From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26585 invoked by alias); 20 Jan 2017 02:47:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26158 invoked by uid 89); 20 Jan 2017 02:47:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Jan 2017 02:47:31 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6CE86C04B935; Fri, 20 Jan 2017 02:47:31 +0000 (UTC) Received: from [10.10.117.52] (ovpn-117-52.rdu2.redhat.com [10.10.117.52]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0K2lUt9010579; Thu, 19 Jan 2017 21:47:30 -0500 Subject: Re: [PATCH] localename: Port to cygwin 2.6. To: bug-gnulib@gnu.org References: <20170119203057.13986-1-eblake@redhat.com> Cc: cygwin@cygwin.com From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <737a9fb1-0598-c6eb-e720-6d7b20f196b4@redhat.com> Date: Fri, 20 Jan 2017 02:47:00 -0000 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> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mfgvu2Hl9pu07FcEoClgXjWVBPB1kGh9K" X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00263.txt.bz2 --mfgvu2Hl9pu07FcEoClgXjWVBPB1kGh9K Content-Type: multipart/mixed; boundary="minCUk8Ok5QISTpHO2KFFotRQaw7IHw3G"; protected-headers="v1" From: Eric Blake To: bug-gnulib@gnu.org Cc: cygwin@cygwin.com Message-ID: <737a9fb1-0598-c6eb-e720-6d7b20f196b4@redhat.com> Subject: Re: [PATCH] localename: Port to cygwin 2.6. References: <20170119203057.13986-1-eblake@redhat.com> In-Reply-To: <20170119203057.13986-1-eblake@redhat.com> --minCUk8Ok5QISTpHO2KFFotRQaw7IHw3G Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1169 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 > --- >=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" Content-length: 604 -----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--