[PATCH 0 of 2] highlight: avoid decode tracebacks

Matt Mackall mpm at selenic.com
Wed Dec 12 10:58:31 CST 2007


On Wed, Dec 12, 2007 at 03:12:00PM +0100, Christian Ebert wrote:
> First patch replaces unnecessary keyword arguments.
> 
> Second patch tries to make a consistent approach at avoiding
> tracebacks due to UnicodeDecodeError.
> 
> We need to pass encoding parameters to pygments lexers and
> formatter.
> To ensure that the lexer can digest its input, we encode the
> input with util.tolocal.
> 
> Possible issue:
> util._encoding and hgweb.encoding /conflict/.

That is ugly. We should probably set util._encoding from
hgweb.encoding here.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial-devel mailing list