diff extensions/kwarchive.py @ 64:9250db8a629a

Make the $Author$ keyword always utf-8 in the output
author Franz Glasner <hg@dom66.de>
date Sun, 26 Nov 2017 15:08:05 +0100
parents eebebd7acc69
children bdb549d71148
line wrap: on
line diff
--- a/extensions/kwarchive.py	Sat Nov 25 18:45:20 2017 +0100
+++ b/extensions/kwarchive.py	Sun Nov 26 15:08:05 2017 +0100
@@ -323,7 +323,7 @@
         "HGpath": path_uri,
         "HGrevision": ctx.hex(),
         "Revision": templatefilters.short(ctx.hex()),
-        "Author": templatefilters.person(ctx.user()).replace(' ', '+'),
+        "Author": templatefilters.utf8(templatefilters.person(ctx.user()).replace(' ', '+')),
         "Date": templatefilters.isodatesec(ctx.date()),
     }
     return keywords