summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-04-04 08:25:05 +0000
committerMartin Pool <mbp@samba.org>2003-04-04 08:25:05 +0000
commit4127c455c8fd446ab952de37fabbd7d8ef20847a (patch)
tree23f4094d30d23a36c9bace6a15cb8d29a9ce3020 /source3
parent75438592cd8b427cbee4a55ee4bd2c8d15f6637d (diff)
downloadsamba-4127c455c8fd446ab952de37fabbd7d8ef20847a.tar.gz
samba-4127c455c8fd446ab952de37fabbd7d8ef20847a.tar.bz2
samba-4127c455c8fd446ab952de37fabbd7d8ef20847a.zip
Export lazy_initialize_conv so that it can be called from
check_dos_char. init_iconv: Call init_doschar_table when reinitializing conversions. (This used to be commit d0b2c5d7ba5531fc695a23bba87a1551cc39e2ee)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/charcnv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index dc270b94b7..00670f4a85 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -59,7 +59,7 @@ static const char *charset_name(charset_t ch)
return ret;
}
-static void lazy_initialize_conv(void)
+void lazy_initialize_conv(void)
{
static int initialized = False;
@@ -114,6 +114,10 @@ void init_iconv(void)
}
if (did_reload) {
+ /* XXX: Does this really get called every time the dos
+ * codepage changes? */
+ /* XXX: Is the did_reload test too strict? */
+ init_doschar_table();
init_valid_table();
}
}