]> Savannah Git Hosting - gnulib.git/commit
localename: port to cygwin 2.6
authorEric Blake <eblake@redhat.com>
Thu, 19 Jan 2017 20:26:30 +0000 (14:26 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 20 Jan 2017 15:29:39 +0000 (09:29 -0600)
commitbb276b416952b938c04d4c5bfa8f48bb00fc1ac1
treeaba6979e4410cd82b91524753aed7ff5a490a1d5
parentec01e68672ac3c76c6cfad2479bb9db85214d597
localename: port to cygwin 2.6

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.  Cygwin has just
been patched to add NL_LOCALE_NAME() patterned after glibc's
extension of the same name[1], but as that version of Cygwin has not
yet been released, we might as well work around it in the meantime.

[1] https://sourceware.org/ml/newlib/2017/msg00071.html

* lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
Cygwin.
* modules/localename (Depends-on): Add extensions, since
NL_LOCALE_NAME() is not visible without it.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/localename.c
modules/localename