summaryrefslogtreecommitdiff
path: root/src/cmd/ksh93/features/locale
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-24 22:28:35 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-24 22:28:35 +0000
commit3950ffe2a485479f6561c27364d3d7df5a21d124 (patch)
tree468c6e14449d1b1e279222ec32f676b0311917d2 /src/cmd/ksh93/features/locale
downloadksh-3950ffe2a485479f6561c27364d3d7df5a21d124.tar.gz
Imported Upstream version 93u+upstream
Diffstat (limited to 'src/cmd/ksh93/features/locale')
-rw-r--r--src/cmd/ksh93/features/locale27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cmd/ksh93/features/locale b/src/cmd/ksh93/features/locale
new file mode 100644
index 0000000..4155b53
--- /dev/null
+++ b/src/cmd/ksh93/features/locale
@@ -0,0 +1,27 @@
+hdr locale,wchar,wctype
+lib locale,localeconv,wctype,iswctype,iswblank
+lib wctrans,towctrans wctype.h
+typ wctrans_t wctype.h
+cat{
+ #if _PACKAGE_ast
+ # undef _hdr_locale
+ # define _hdr_locale 1
+ #else
+ # ifdef _hdr_locale
+ # include <locale.h>
+ # ifndef LC_MESSAGES
+ # define LC_MESSAGES LC_ALL
+ # endif /* LC_MESSAGES */
+ # endif /* _hdr_locale */
+ #endif /* _PACKAGE_ast */
+ #ifdef _hdr_locale
+ # ifdef _lib_localeconv
+ static struct lconv *lp;
+ # define GETDECIMAL(x) (((lp=localeconv()) && lp->decimal_point && *lp->decimal_point) ? *lp->decimal_point : '.' )
+ # else
+ # define GETDECIMAL(x) ('.')
+ # endif /* _lib_localeconv */
+ #else
+ # define GETDECIMAL(x) ('.')
+ #endif /* _hdr_locale */
+}end