[PATCH 0 of 2] highlight: encode to hgweb.encoding to avoid tracebacks

Christian Ebert blacktrash at gmx.net
Wed Dec 12 17:03:31 CST 2007


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.
- We set util._encoding to hgweb.encoding to avoid conflicts
  between input and output encoding.
- To ensure that the lexer can digest its input, we encode the
  input with util.tolocal.

c


More information about the Mercurial-devel mailing list