summaryrefslogtreecommitdiffstats
path: root/source/lib/replace.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-12-27 20:52:36 +0000
committerJeremy Allison <jra@samba.org>2005-12-27 20:52:36 +0000
commitc4f6089fb3a71e642ba3ab988758dacf6c07bc86 (patch)
treef0f957d3aca809dfdb85e5c999c39384c5a57f84 /source/lib/replace.c
parentc38ad8b70e0cb4f193240f198221e2f7b05c8227 (diff)
downloadsamba-c4f6089fb3a71e642ba3ab988758dacf6c07bc86.tar.gz
samba-c4f6089fb3a71e642ba3ab988758dacf6c07bc86.tar.xz
samba-c4f6089fb3a71e642ba3ab988758dacf6c07bc86.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)