This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
intl patches (7)
- To: libc-alpha at sources dot redhat dot com
- Subject: intl patches (7)
- From: Bruno Haible <haible at ilog dot fr>
- Date: Mon, 19 Mar 2001 19:48:22 +0100 (CET)
The function _tolower is not portable. So change it to 'tolower'. Inside
libc, this change does nothing because 'tolower' and '_tolower' are optimized
to the same degree (the argument being of type 'char').
This patch doesn't cause behaviour changes in glibc.
2001-01-05 Bruno Haible <haible@clisp.cons.org>
* intl/l10nflist.c (_nl_normalize_codeset): Use tolower, not _tolower.
diff -r -c3 intl/l10nflist.c intl-99/l10nflist.c
*** intl/l10nflist.c Fri Jan 5 15:10:57 2001
--- intl/l10nflist.c Sat Mar 17 14:37:28 2001
***************
*** 1,4 ****
! /* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
The GNU C Library is free software; you can redistribute it and/or
--- 1,4 ----
! /* Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
The GNU C Library is free software; you can redistribute it and/or
***************
*** 389,395 ****
for (cnt = 0; cnt < name_len; ++cnt)
if (isalpha (codeset[cnt]))
! *wp++ = _tolower (codeset[cnt]);
else if (isdigit (codeset[cnt]))
*wp++ = codeset[cnt];
--- 389,395 ----
for (cnt = 0; cnt < name_len; ++cnt)
if (isalpha (codeset[cnt]))
! *wp++ = tolower (codeset[cnt]);
else if (isdigit (codeset[cnt]))
*wp++ = codeset[cnt];