summary refs log tree commit diff
path: root/locale/lc-ctype.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/lc-ctype.c')
-rw-r--r--locale/lc-ctype.c31
1 files changed, 9 insertions, 22 deletions
diff --git a/locale/lc-ctype.c b/locale/lc-ctype.c
index 4b40b8a22d..bf7b525129 100644
--- a/locale/lc-ctype.c
+++ b/locale/lc-ctype.c
@@ -41,41 +41,28 @@ _nl_postload_ctype (void)
   ((const type *) _NL_CURRENT (LC_CTYPE, paste(_NL_CTYPE_,x)) + offset)
 
   extern const uint32_t *__ctype32_b;
-  extern const uint32_t *__ctype_names;
-  extern const unsigned char *__ctype_width;
   extern const uint32_t *__ctype32_toupper;
   extern const uint32_t *__ctype32_tolower;
   extern const char *__ctype32_wctype[12];
   extern const char *__ctype32_wctrans[2];
   extern const char *__ctype32_width;
 
+  size_t offset, cnt;
+
   __ctype_b = current (uint16_t, CLASS, 128);
   __ctype_toupper = current (uint32_t, TOUPPER, 128);
   __ctype_tolower = current (uint32_t, TOLOWER, 128);
   __ctype32_b = current (uint32_t, CLASS32, 0);
   __ctype32_toupper = current (uint32_t, TOUPPER32, 0);
   __ctype32_tolower = current (uint32_t, TOLOWER32, 0);
-  if (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_HASH_SIZE) != 0)
-    {
-      /* Old locale format.  */
-      __ctype_names = current (uint32_t, NAMES, 0);
-      __ctype_width = current (unsigned char, WIDTH, 0);
-    }
-  else
-    {
-      /* New locale format.  */
-      size_t offset, cnt;
 
-      offset = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_CLASS_OFFSET);
-      for (cnt = 0; cnt < 12; cnt++)
-	__ctype32_wctype[cnt] =
-	  _nl_current_LC_CTYPE->values[offset + cnt].string;
+  offset = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_CLASS_OFFSET);
+  for (cnt = 0; cnt < 12; cnt++)
+    __ctype32_wctype[cnt] = _nl_current_LC_CTYPE->values[offset + cnt].string;
 
-      offset = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MAP_OFFSET);
-      for (cnt = 0; cnt < 2; cnt++)
-	__ctype32_wctrans[cnt] =
-	  _nl_current_LC_CTYPE->values[offset + cnt].string;
+  offset = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MAP_OFFSET);
+  for (cnt = 0; cnt < 2; cnt++)
+    __ctype32_wctrans[cnt] = _nl_current_LC_CTYPE->values[offset + cnt].string;
 
-      __ctype32_width = current (char, WIDTH, 0);
-    }
+  __ctype32_width = current (char, WIDTH, 0);
 }