[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] localename: Port to cygwin 2.6.

From: Eric Blake
Subject: Re: [PATCH] localename: Port to cygwin 2.6.
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

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.
> * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
> Cygwin.
> Signed-off-by: Eric Blake <address@hidden>
> ---
> 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():

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

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]