summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-30 20:20:43 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-30 23:58:43 (GMT)
commit677cfed56ac530878b746ee4cca3ada8af384a81 (patch)
tree19b8162432db50d0940067236af6ec8791a9ac03 /utf8.h
parent7cbcf4d5579bdc5d9f8a4bf3f37d3390fc6e2572 (diff)
downloadgit-677cfed56ac530878b746ee4cca3ada8af384a81.zip
git-677cfed56ac530878b746ee4cca3ada8af384a81.tar.gz
git-677cfed56ac530878b746ee4cca3ada8af384a81.tar.bz2
commit-tree: cope with different ways "utf-8" can be spelled.
People can spell config.commitencoding differently from what we internally have ("utf-8") to mean UTF-8. Try to accept them and treat them equally. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index cae2a8e..a07c5a8 100644
--- a/utf8.h
+++ b/utf8.h
@@ -3,6 +3,8 @@
int utf8_width(const char **start);
int is_utf8(const char *text);
+int is_encoding_utf8(const char *name);
+
void print_wrapped_text(const char *text, int indent, int indent2, int len);
#ifndef NO_ICONV