summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-04-11 00:35:56 +0000
committerUlrich Drepper <drepper@redhat.com>2001-04-11 00:35:56 +0000
commit7e3f28752e9d9d5c3c92feec638c11f5c5505d17 (patch)
treeaca42ee7fa9b5f88d46d99ecfe0ec7056492f05d
parent951d5dd80f7266fbc655e917eadfe2701c4a735b (diff)
downloadglibc-7e3f28752e9d9d5c3c92feec638c11f5c5505d17.tar.gz
glibc-7e3f28752e9d9d5c3c92feec638c11f5c5505d17.tar.xz
glibc-7e3f28752e9d9d5c3c92feec638c11f5c5505d17.zip
Update.
	* ctype/ctype_l.c: Fix definitions of __tolower_l and __toupper_l.
	Reported by Konstantin Osipov <rabid@spylog.ru>.
-rw-r--r--ChangeLog3
-rw-r--r--ctype/ctype_l.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e734dc0f37..82ef524cf0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-04-10  Ulrich Drepper  <drepper@redhat.com>
 
+	* ctype/ctype_l.c: Fix definitions of __tolower_l and __toupper_l.
+	Reported by Konstantin Osipov <rabid@spylog.ru>.
+
 	* sysdeps/i386/fpu/libm-test-ulps: Add deltas for tgamma to help
 	the lousy AMD FPU.
 
diff --git a/ctype/ctype_l.c b/ctype/ctype_l.c
index a1608df6e5..221b753dd7 100644
--- a/ctype/ctype_l.c
+++ b/ctype/ctype_l.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1997, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -39,11 +39,11 @@ func (__isxdigit_l, _ISxdigit)
 int
 (__tolower_l) (int c, __locale_t l)
 {
-  return __tolower_l (c, l);
+  return l->__ctype_tolower[c];
 }
 
 int
 (__toupper_l) (int c, __locale_t l)
 {
-  return __toupper_l (c, l);
+  return l->__ctype_toupper[c];
 }