Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-08-20 18:22:41 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-08-20 18:22:41 +0300
commit216054fa77ee4d313d186406c371a341e16c2ee7 (patch)
treed14d5621def6e0f85cd3b1e7e9d6fb4c9bdf26d2 /winsup/cygwin
parent7630e384623f778b88be8926e2c2a2e6fcbd9008 (diff)
Implement missing POSIX function nl_langinfo_l
Change nl_langinfo to nl_langinfo_l using locale given as argument. Remove outdated TRANSITION_PERIOD_HACK. The codeset is stored in the locale for quite some time now. For !MB_CAPABLE targets, just return "US_ASCII" as codeset. Implement nl_langinfo by calling nl_langinfo_l. Export nl_langinfo_l from Cygwin DLL and bump minor API version number. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/common.din1
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din
index f945078df..d54b70abb 100644
--- a/winsup/cygwin/common.din
+++ b/winsup/cygwin/common.din
@@ -939,6 +939,7 @@ nexttowardl NOSIGFE
nftw SIGFE
nice SIGFE
nl_langinfo SIGFE
+nl_langinfo_l SIGFE
nrand48 NOSIGFE
ntohl NOSIGFE
ntohs NOSIGFE
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index 0e00ae1a7..2782c32b3 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -466,12 +466,13 @@ details. */
301: Export strtod_l, strtof_l, strtol_l, strtold_l, strtoll_l, strtoul_l,
strtoull_l, wcstod_l, wcstof_l, wcstol_l, wcstold_l, wcstoll_l,
wcstoul_l, wcstoull_l.
+ 302: Export nl_langinfo_l.
Note that we forgot to bump the api for ualarm, strtoll, strtoull,
sigaltstack, sethostname. */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 301
+#define CYGWIN_VERSION_API_MINOR 302
/* There is also a compatibity version number associated with the shared memory
regions. It is incremented when incompatible changes are made to the shared