aboutsummaryrefslogtreecommitdiffstats
path: root/src/charConv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charConv.c')
-rw-r--r--src/charConv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/charConv.c b/src/charConv.c
index 8e614f3a0..8e8a9ce95 100644
--- a/src/charConv.c
+++ b/src/charConv.c
@@ -150,6 +150,13 @@ char *convStrDup(char *string)
return NULL;
}
+char *convCharset(char *to, char *from, char *str, char *ret)
+{
+ if (ret)
+ free(ret);
+ return setCharSetConversion(to, from) ? NULL : convStrDup(str);
+}
+
static void closeCharSetConversion(void)
{
if (char_conv_to) {