summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/modules.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/modules.h b/source4/scripting/python/modules.h
index 238c73455f..6b242ee257 100644
--- a/source4/scripting/python/modules.h
+++ b/source4/scripting/python/modules.h
@@ -23,4 +23,6 @@
void py_load_samba_modules(void);
void py_update_path(const char *bindir);
+#define py_iconv_convenience(mem_ctx) smb_iconv_convenience_init(mem_ctx, "ASCII", PyUnicode_GetDefaultEncoding(), true)
+
#endif /* __SAMBA_PYTHON_MODULES_H__ */