Print this page
2964 need POSIX 2008 locale object support
@@ -34,10 +34,12 @@
extern int __nlocale_changed;
extern const char *__fix_locale_grouping_str(const char *);
#define LCNUMERIC_SIZE (sizeof (struct lc_numeric_T) / sizeof (char *))
+struct xlocale_numeric __xlocale_global_numeric;
+
static char numempty[] = { CHAR_MAX, '\0' };
static const struct lc_numeric_T _C_numeric_locale = {
".", /* decimal_point */
"", /* thousands_sep */
@@ -75,10 +77,22 @@
_numeric[0] = *leg->decimal_point;
_numeric[1] = *leg->grouping;
return (ret);
}
+void *
+__numeric_load(const char *name, locale_t l)
+{
+ struct xlocale_numeric *new;
+
+ new = calloc(sizeof(struct xlocale_numeric), 1);
+
+ /* XXX */
+
+ return (new);
+}
+
struct lc_numeric_T *
__get_current_numeric_locale(void)
{
return (_numeric_using_locale ? &_numeric_locale :
(struct lc_numeric_T *)&_C_numeric_locale);