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 /newlib/libc/include/langinfo.h
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 'newlib/libc/include/langinfo.h')
-rw-r--r--newlib/libc/include/langinfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/newlib/libc/include/langinfo.h b/newlib/libc/include/langinfo.h
index 9040adeff..0fbb2a8d9 100644
--- a/newlib/libc/include/langinfo.h
+++ b/newlib/libc/include/langinfo.h
@@ -32,6 +32,9 @@
#include <newlib.h>
#include <sys/config.h>
#include <sys/cdefs.h>
+#if __POSIX_VISIBLE >= 200809
+#include <sys/_locale.h>
+#endif
typedef int nl_item;
@@ -310,7 +313,10 @@ enum __nl_item
};
__BEGIN_DECLS
-char *nl_langinfo(nl_item);
+char *nl_langinfo (nl_item);
+#if __POSIX_VISIBLE >= 200809
+char *nl_langinfo_l (nl_item, locale_t);
+#endif
__END_DECLS
#endif /* !_LANGINFO_H_ */