xref: /onnv-gate/usr/src/lib/libshell/common/features/locale (revision 4887:feebf9260c2e)
1*4887Schinhdr	locale,wchar
2*4887Schinlib	locale,localeconv,wctype,iswctype,iswblank
3*4887Schincat{
4*4887Schin	#if _PACKAGE_ast
5*4887Schin	#   undef  _hdr_locale
6*4887Schin	#   define _hdr_locale 1
7*4887Schin	#else
8*4887Schin	#   ifdef _hdr_locale
9*4887Schin	#	include <locale.h>
10*4887Schin	#	ifndef LC_MESSAGES
11*4887Schin	#	    define LC_MESSAGES  LC_ALL
12*4887Schin	#	endif /* LC_MESSAGES */
13*4887Schin	#   endif /* _hdr_locale */
14*4887Schin	#endif /* _PACKAGE_ast */
15*4887Schin	#ifdef _hdr_locale
16*4887Schin	#   ifdef _lib_localeconv
17*4887Schin		static struct lconv *lp;
18*4887Schin	#	define GETDECIMAL(x)  (((lp=localeconv()) && lp->decimal_point && *lp->decimal_point) ?  *lp->decimal_point : '.' )
19*4887Schin	#   else
20*4887Schin	#	define GETDECIMAL(x)	('.')
21*4887Schin	#   endif /* _lib_localeconv */
22*4887Schin	#else
23*4887Schin	#   define GETDECIMAL(x)	('.')
24*4887Schin	#endif /* _hdr_locale */
25*4887Schin}end
26