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