summaryrefslogtreecommitdiff
path: root/src/cmd/ksh93/features/locale
blob: 4155b530754bc13f449d49168f36bbd240ac2e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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