xref: /titanic_50/usr/src/lib/libshell/common/features/locale (revision bfed486ad8de8b8ebc6345a8e10accae08bf2f45)
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