--- a/mercurial/hgweb/webcommands.py Mon Jan 04 23:05:09 2016 +0900
+++ b/mercurial/hgweb/webcommands.py Sun Dec 27 17:59:57 2015 +0900
@@ -1196,7 +1196,8 @@
canvaswidth=(cols + 1) * bg_height,
truecanvasheight=rows * bg_height,
canvasheight=canvasheight, bg_height=bg_height,
- jsdata=lambda **x: graphdata(True, str),
+ # {jsdata} will be passed to |json, so it must be in utf-8
+ jsdata=lambda **x: graphdata(True, encoding.fromlocal),
nodes=lambda **x: graphdata(False, str),
node=ctx.hex(), changenav=changenav)