misc/dashboard/builder: talk to hg with utf-8 encoding always.
Fixes #1465.
R=rsc
CC=golang-dev
https://golang.org/cl/4172063
diff --git a/misc/dashboard/builder/hg.go b/misc/dashboard/builder/hg.go
index 5d2f63a..8dd33e4 100644
--- a/misc/dashboard/builder/hg.go
+++ b/misc/dashboard/builder/hg.go
@@ -46,7 +46,12 @@
func getCommitParts(rev string) (parts []string, err os.Error) {
const format = "{rev}>{node}>{author|escape}>{date}>{desc}"
s, _, err := runLog(nil, "", goroot,
- "hg", "log", "-r", rev, "-l", "1", "--template", format)
+ "hg", "log",
+ "--encoding", "utf-8",
+ "--rev", rev,
+ "--limit", "1",
+ "--template", format,
+ )
if err != nil {
return
}