summaryrefslogtreecommitdiff
path: root/src/lookup.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lookup.cc')
-rw-r--r--src/lookup.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lookup.cc b/src/lookup.cc
index 228a1d31..56820e99 100644
--- a/src/lookup.cc
+++ b/src/lookup.cc
@@ -188,7 +188,13 @@ lookup_probable_account(const string& ident,
#if 0
#if !HAVE_BOOST_REGEX_UNICODE
- if (pos == 0 || (pos > 0 && !std::isalnum(value_key[pos - 1])))
+ // Probably doesn't make sense with value_key as unistring,
+ // but this code is under #if 0 anyway, so if anyone is
+ // tempted to use this by changing value_key to string, let's
+ // avoid leaving a rake to step on.
+ if (pos == 0 ||
+ (pos > 0 &&
+ !std::isalnum(static_cast<unsigned char>(value_key[pos - 1]))))
addend++;
#else
// jww (2010-03-07): Not yet implemented