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