From 2ecae04c89aacf7a559d6cb832e5d1b8e9890480 Mon Sep 17 00:00:00 2001 From: nu774 Date: Mon, 4 Nov 2013 12:18:27 +0900 Subject: [PATCH] update git2changelog to accept non-ascii output --- git2changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) -- 2.39.2