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>
This commit is contained in:
Junio C Hamano
2006-12-30 12:20:43 -08:00
parent 7cbcf4d557
commit 677cfed56a
3 changed files with 12 additions and 2 deletions

2
utf8.h
View File

@ -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