about summary refs log tree commit diff
path: root/locale/broken_cur_max.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/broken_cur_max.c')
-rw-r--r--locale/broken_cur_max.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/locale/broken_cur_max.c b/locale/broken_cur_max.c
index c997bec163..bfdec32f4f 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];
 }