[PATCH] highlight: fixes garbled text in non-UTF-8 environment

Christian Ebert blacktrash at gmx.net
Sat Sep 5 07:05:20 CDT 2009


* Martin Geisler on Saturday, September 05, 2009 at 13:25:37 +0200
> Christian Ebert <blacktrash at gmx.net> writes:
>> Have you checked whether this still highlights the text in question?
>> With this patch I lose all highlighting!
> 
> That is strage -- it works as advertised here: I tested with some
> Japanese characters from our translation and they were rendered
> correctly when the encoding matched the file encoding, and garbled
> otherwise. I've only tested with 'hg serve --encoding xxx', not
> hgweb.cgi, if that makes a difference.

Indeed it does. Just tested "hg serve": highlighting works;
hgwebdir.cgi: no highlighting. Encoding is not the problem.

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
                     Ein deutscher Western/A German Western
Next show: 18 September 2009 --->>    http://goldkante.org/
         --->> http://www.blacktrash.org/underdogma/ccc.php


More information about the Mercurial-devel mailing list