summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-24 07:36:55 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-26 08:22:39 (GMT)
commitb45974a655e0e41441e5db64c091000171435096 (patch)
treeeda158daf71b9994b42002b0fe4b50800a4eb789 /utf8.h
parent6934dec89538e054823aadcce08af040bc8dcf79 (diff)
downloadgit-b45974a655e0e41441e5db64c091000171435096.zip
git-b45974a655e0e41441e5db64c091000171435096.tar.gz
git-b45974a655e0e41441e5db64c091000171435096.tar.bz2
Move encoding conversion routine out of mailinfo to utf8.c
This moves the body of convert_to_utf8() routine used in mailinfo to the utf8.c i18n library. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index a0d7f59..cae2a8e 100644
--- a/utf8.h
+++ b/utf8.h
@@ -5,4 +5,10 @@ int utf8_width(const char **start);
int is_utf8(const char *text);
void print_wrapped_text(const char *text, int indent, int indent2, int len);
+#ifndef NO_ICONV
+char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
+#else
+#define reencode_string(a,b,c) NULL
+#endif
+
#endif