diff options
| author | Lars Hjemli | 2007-11-06 00:38:18 +0100 |
|---|---|---|
| committer | Lars Hjemli | 2007-11-06 00:38:18 +0100 |
| commit | 55ac326ecb01161bf62865ae3350acf85db97d63 (patch) | |
| tree | e37bcd8fef5523aa627ec9fdcd3401105f8e579d /cgit.h | |
| parent | d04c4734bcf40b1d17c55b18fba2aa8344678e8f (diff) | |
| parent | a2ebbd6948da96172108db5e9c02c141923ad05c (diff) | |
| download | cgit-55ac326ecb01161bf62865ae3350acf85db97d63.tar.gz cgit-55ac326ecb01161bf62865ae3350acf85db97d63.tar.bz2 cgit-55ac326ecb01161bf62865ae3350acf85db97d63.zip | |
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.
Diffstat (limited to 'cgit.h')
| -rw-r--r-- | cgit.h | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <log-tree.h> | 16 | #include <log-tree.h> |
| 17 | #include <archive.h> | 17 | #include <archive.h> |
| 18 | #include <xdiff/xdiff.h> | 18 | #include <xdiff/xdiff.h> |
| 19 | #include <utf8.h> | ||
| 19 | 20 | ||
| 20 | 21 | ||
| 21 | /* | 22 | /* |
| @@ -48,6 +49,11 @@ | |||
| 48 | #define TM_MONTH (TM_YEAR / 12.0) | 49 | #define TM_MONTH (TM_YEAR / 12.0) |
| 49 | 50 | ||
| 50 | 51 | ||
| 52 | /* | ||
| 53 | * Default encoding | ||
| 54 | */ | ||
| 55 | #define PAGE_ENCODING "UTF-8" | ||
| 56 | |||
| 51 | typedef void (*configfn)(const char *name, const char *value); | 57 | typedef void (*configfn)(const char *name, const char *value); |
| 52 | typedef void (*filepair_fn)(struct diff_filepair *pair); | 58 | typedef void (*filepair_fn)(struct diff_filepair *pair); |
| 53 | typedef void (*linediff_fn)(char *line, int len); | 59 | typedef void (*linediff_fn)(char *line, int len); |
| @@ -90,6 +96,7 @@ struct commitinfo { | |||
| 90 | unsigned long committer_date; | 96 | unsigned long committer_date; |
| 91 | char *subject; | 97 | char *subject; |
| 92 | char *msg; | 98 | char *msg; |
| 99 | char *msg_encoding; | ||
| 93 | }; | 100 | }; |
| 94 | 101 | ||
| 95 | struct taginfo { | 102 | struct taginfo { |
