]> iEval git - fdkaac.git/commitdiff
update git2changelog to accept non-ascii output
authornu774 <honeycomb77@gmail.com>
Mon, 4 Nov 2013 03:18:27 +0000 (12:18 +0900)
committernu774 <honeycomb77@gmail.com>
Mon, 4 Nov 2013 03:18:27 +0000 (12:18 +0900)
git2changelog.py

index 694e9baf3339f9c104705a889e74d8c2e4b7a012..2b2ba605fb713aea812dc059c81cdae0b2845ce2 100755 (executable)
@@ -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'))
This page took 0.017491 seconds and 4 git commands to generate.