From: nu774 Date: Mon, 4 Nov 2013 03:18:27 +0000 (+0900) Subject: update git2changelog to accept non-ascii output X-Git-Tag: v0.5.1~6 X-Git-Url: http://git.ieval.ro/?p=fdkaac.git;a=commitdiff_plain;h=2ecae04c89aacf7a559d6cb832e5d1b8e9890480 update git2changelog to accept non-ascii output --- diff --git a/git2changelog.py b/git2changelog.py index 694e9ba..2b2ba60 100755 --- a/git2changelog.py +++ b/git2changelog.py @@ -39,6 +39,6 @@ with Popen(GITLOG_CMD, shell=False, stdout=PIPE).stdout as pipe: commits = parse_gitlog(pipe) commits_by_date_author = groupby(commits, key=lambda x: (x.date, x.author)) for (date, author), commits in commits_by_date_author: - output('{0} {1}\n\n'.format(date, author)) + output(u'{0} {1}\n\n'.format(date, author).encode('utf-8')) for c in commits: - output(' * {0}{1}\n\n'.format(c.subject, c.ref)) + output(u' * {0}{1}\n\n'.format(c.subject, c.ref).encode('utf-8'))