summaryrefslogtreecommitdiff
path: root/source3/lib/iconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/iconv.c')
-rw-r--r--source3/lib/iconv.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/iconv.c b/source3/lib/iconv.c
index 6a397f2d9e..a37441b9fa 100644
--- a/source3/lib/iconv.c
+++ b/source3/lib/iconv.c
@@ -66,8 +66,12 @@ static struct charset_functions *charsets = NULL;
static struct charset_functions *find_charset_functions(const char *name)
{
struct charset_functions *c = charsets;
+ pstring stripped;
+
+ module_path_get_name(name, stripped);
+
while(c) {
- if (strcasecmp(name, c->name) == 0)return c;
+ if (strequal(stripped, c->name) == 0)return c;
c = c->next;
}
@@ -103,9 +107,8 @@ void lazy_initialize_iconv(void)
initialized = True;
for(i = 0; builtin_functions[i].name; i++)
smb_register_charset(&builtin_functions[i]);
+ static_init_charset;
}
-
- static_init_charset;
}
/* if there was an error then reset the internal state,