summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-12-27 20:52:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:58 -0500
commitc2752347eb2deeb2798c580ec7fc751a847717e9 (patch)
treef0f957d3aca809dfdb85e5c999c39384c5a57f84 /source/lib/replace.c
parentc007f20c955f224c6a8deeb0b1f82e8432f1b9ab (diff)
downloadsamba-c2752347eb2deeb2798c580ec7fc751a847717e9.tar.gz
samba-c2752347eb2deeb2798c580ec7fc751a847717e9.tar.xz
samba-c2752347eb2deeb2798c580ec7fc751a847717e9.zip
r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
and replace calls to isupper/islower/toupper/tolower with ASCII equivalents (mapping into _w variants). Jeremy.
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r--source/lib/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c
index 57ee6ea11e6..120fd3a4688 100644
--- a/source/lib/replace.c
+++ b/source/lib/replace.c
@@ -390,7 +390,7 @@ char *rep_inet_ntoa(struct in_addr ip)
if (isdigit(c))
c -= '0';
else if (isalpha(c))
- c -= isupper(c) ? 'A' - 10 : 'a' - 10;
+ c -= isupper_ascii(c) ? 'A' - 10 : 'a' - 10;
else
break;
if (c >= base)