gitweb: optimize Encoding use
commitd4cfdf2f5f6751bf805909a10572913b17dce3e1
authorKyle J. McKay <mackyle@gmail.com>
Mon, 13 Apr 2015 22:39:46 +0000 (13 15:39 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 13 Apr 2015 22:39:46 +0000 (13 15:39 -0700)
tree8356bb5204139f1ba6525b298c3c7a03e296ec53
parenta2c46c2b79c8147c1e3ef004227a15bbe0daa33c
gitweb: optimize Encoding use

Make sure the fallback encoding is only looked up exactly once
rather than every time we call to_utf8 and the input string is
not UTF-8 or US-ASCII.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/gitweb.perl