diff options
author | schmonz <schmonz@pkgsrc.org> | 2002-07-21 19:26:30 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2002-07-21 19:26:30 +0000 |
commit | e8cd9f4a50b9cd679821dd61b958a6418fee969f (patch) | |
tree | 9e7b9e580e93e1baad16268cc6818c8af1f55c85 /devel/gettext/patches | |
parent | 0eb52bd7118dbd42ecfdf999b4cd667dcc9f8b87 (diff) | |
download | pkgsrc-e8cd9f4a50b9cd679821dd61b958a6418fee969f.tar.gz |
Darwin doesn't provide _tolower(), an XSI extension that works like
tolower() but requires uppercase input. It's always safe to use
tolower() instead, at the possible expense of a little execution
time. Thanks to simonb for the explanation.
From Jeffrey Putsch <jdputsch@attbi.com> on tech-pkg@.
Diffstat (limited to 'devel/gettext/patches')
-rw-r--r-- | devel/gettext/patches/patch-ag | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/devel/gettext/patches/patch-ag b/devel/gettext/patches/patch-ag index 4e6af5b3b05..7d858048d19 100644 --- a/devel/gettext/patches/patch-ag +++ b/devel/gettext/patches/patch-ag @@ -1,10 +1,10 @@ -$NetBSD: patch-ag,v 1.1 2000/06/30 17:07:36 danw Exp $ - +$NetBSD: patch-ag,v 1.2 2002/07/21 19:26:30 schmonz Exp $ + Fix inspired by glibc, which gets it wrong. ---- intl/l10nflist.c.orig Fri Jun 23 03:25:01 2000 -+++ intl/l10nflist.c Fri Jun 23 03:26:32 2000 -@@ -349,8 +349,9 @@ +--- intl/l10nflist.c.orig Wed Apr 29 12:38:06 1998 ++++ intl/l10nflist.c +@@ -349,8 +349,9 @@ _nl_make_l10nflist (l10nfile_list, dirli /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common @@ -16,15 +16,7 @@ Fix inspired by glibc, which gets it wrong. _nl_normalize_codeset (codeset, name_len) const unsigned char *codeset; size_t name_len; -@@ -381,14 +382,14 @@ - - for (cnt = 0; cnt < name_len; ++cnt) - if (isalpha (codeset[cnt])) -- *wp++ = tolower (codeset[cnt]); -+ *wp++ = _tolower (codeset[cnt]); - else if (isdigit (codeset[cnt])) - *wp++ = codeset[cnt]; - +@@ -388,7 +389,7 @@ _nl_normalize_codeset (codeset, name_len *wp = '\0'; } |