Remove dependency of charset code on loadparm.
[kai/samba.git] / lib / util / charset / util_unistr.c
index 91d0be109ac78551b4e4205e9350f3301585e215..a40b4298a42d3b397d812a5d2b85181de1a9a962 100644 (file)
 
 #include "includes.h"
 #include "system/locale.h"
-#include "param/param.h"
+
+struct smb_iconv_convenience *global_iconv_convenience = NULL;
 
 static inline struct smb_iconv_convenience *get_iconv_convenience(void)
 {
-       return lp_iconv_convenience(global_loadparm);
+       if (global_iconv_convenience == NULL)
+               global_iconv_convenience = smb_iconv_convenience_init(talloc_autofree_context(), "ASCII", "UTF-8", true);
+       return global_iconv_convenience;
 }
 
 /**