aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/Versions1
-rw-r--r--locale/broken_cur_max.c5
2 files changed, 3 insertions, 3 deletions
diff --git a/locale/Versions b/locale/Versions
index 6bce99f..094a392 100644
--- a/locale/Versions
+++ b/locale/Versions
@@ -50,6 +50,5 @@ libc {
# global variables
__collate_element_hash; __collate_element_strings;
__collate_symbol_classes; __collate_symbol_hash; __collate_symbol_strings;
- _nl_current_LC_COLLATE; _nl_current_LC_CTYPE;
}
}
diff --git a/locale/broken_cur_max.c b/locale/broken_cur_max.c
index c997bec..bfdec32 100644
--- a/locale/broken_cur_max.c
+++ b/locale/broken_cur_max.c
@@ -44,7 +44,8 @@
size_t
__ctype_get_mb_cur_max (void)
{
- size_t correct_value = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX);
+ union locale_data_value u;
- return ((size_t []) { 1, 1, 1, 2, 2, 3, 4 })[correct_value];
+ u.string = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
+ return ((size_t []) { 1, 1, 1, 2, 2, 3, 4 })[u.word];
}