From 55ac326ecb01161bf62865ae3350acf85db97d63 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 05 Nov 2007 23:38:18 +0000 Subject: Merge branch 'iconv-rebased' of http://x2a.org/pub/git/cgit * 'iconv-rebased' of http://x2a.org/pub/git/cgit: Use utf8::reencode_string from git Convert subject and message with iconv_msg. Add iconv_msg function. Set msg_encoding according to the header. Add commit->msg_encoding, allocate msg dynamicly. --- (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 163f355..6291c58 100644 --- a/cgit.h +++ b/cgit.h @@ -16,6 +16,7 @@ #include #include #include +#include /* @@ -48,6 +49,11 @@ #define TM_MONTH (TM_YEAR / 12.0) +/* + * Default encoding + */ +#define PAGE_ENCODING "UTF-8" + typedef void (*configfn)(const char *name, const char *value); typedef void (*filepair_fn)(struct diff_filepair *pair); typedef void (*linediff_fn)(char *line, int len); @@ -90,6 +96,7 @@ struct commitinfo { unsigned long committer_date; char *subject; char *msg; + char *msg_encoding; }; struct taginfo { -- cgit v0.9.0.2