From cd5cc7038cbd8ebd0665e08b02e2fa58b5aa4627 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 24 Feb 2000 22:48:54 +0000 Subject: [PATCH] Add table pointer for both endianesses. --- locale/C-ctype.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/locale/C-ctype.c b/locale/C-ctype.c index 44bace10685..e442d11bea4 100644 --- a/locale/C-ctype.c +++ b/locale/C-ctype.c @@ -343,7 +343,7 @@ const struct locale_data _nl_C_LC_CTYPE = _nl_C_name, NULL, 0, 0, /* no file mapped */ UNDELETABLE, - 15, + 20, { { string: _nl_C_LC_CTYPE_class }, #if BYTE_ORDER == LITTLE_ENDIAN @@ -369,7 +369,14 @@ const struct locale_data _nl_C_LC_CTYPE = { string: _nl_C_LC_CTYPE_width }, { word: 1 }, { string: "ANSI_X3.4-1968" }, +#if BYTE_ORDER == LITTLE_ENDIAN + { string: NULL }, +#endif { string: (const char *) (_nl_C_LC_CTYPE_toupper + 128) }, + { string: NULL }, { string: (const char *) (_nl_C_LC_CTYPE_tolower + 128) } +#if BYTE_ORDER == BIG_ENDIAN + { string: NULL }, +#endif } }; -- 2.47.2