about summary refs log tree commit diff
path: root/localedata
diff options
context:
space:
mode:
Diffstat (limited to 'localedata')
-rw-r--r--localedata/ChangeLog4
-rw-r--r--localedata/tst-ctype.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index ad0be111fb..f9d40bd137 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-01  Roland McGrath  <roland@redhat.com>
+
+	* tst-ctype.c (main): Use nl_langinfo instead of __ctype_b global.
+
 2002-08-28  Roland McGrath  <roland@redhat.com>
 
 	* tst-xlocale1.c (main): Remove __ from function names.
diff --git a/localedata/tst-ctype.c b/localedata/tst-ctype.c
index 470b1ce4d1..b6f615ced6 100644
--- a/localedata/tst-ctype.c
+++ b/localedata/tst-ctype.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 2000.
 
@@ -19,6 +19,7 @@
 
 #include <ctype.h>
 #include <locale.h>
+#include <langinfo.h>
 #include <stdio.h>
 #include <string.h>
 
@@ -72,12 +73,15 @@ main (void)
   char *resline = NULL;
   size_t reslinelen = 0;
   int n;
+  const unsigned short int *__ctype_b;
 
   setlocale (LC_ALL, "");
 
   printf ("Testing the ctype data of the `%s' locale\n",
 	  setlocale (LC_CTYPE, NULL));
 
+  __ctype_b = ((const unsigned short *) nl_langinfo (_NL_CTYPE_CLASS)) + 128;
+
 #if 0
   /* Just for debugging.  */