encoding/htmlindex: use PreferSameScript

has no effect now, but captures intent better
so should be better for future compatibility.

Change-Id: Ia39bb0492feebf1ba2be52badde2fb31f3f0ed7b
Reviewed-on: https://go-review.googlesource.com/54690
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
diff --git a/encoding/htmlindex/htmlindex.go b/encoding/htmlindex/htmlindex.go
index 70f2ac4..bdc7d15 100644
--- a/encoding/htmlindex/htmlindex.go
+++ b/encoding/htmlindex/htmlindex.go
@@ -50,7 +50,7 @@
 		for _, t := range strings.Split(locales, " ") {
 			tags = append(tags, language.MustParse(t))
 		}
-		matcher = language.NewMatcher(tags)
+		matcher = language.NewMatcher(tags, language.PreferSameScript(true))
 	})
 	_, i, _ := matcher.Match(tag)
 	return canonical[localeMap[i]] // Default is Windows-1252.