[PATCH] hgweb: specify a charset when sending raw text files

Julian Cowley julian at lava.net
Thu Jun 10 20:18:14 CDT 2010


On Thu, 10 Jun 2010, Matt Mackall wrote:
> On Wed, 2010-06-09 at 15:58 -1000, Julian Cowley wrote:
> > For instance, on my Mac using python 2.6 from MacPorts:
> > 
> > $ unset LANG
> > $ python -c 'import mercurial.encoding; print mercurial.encoding.encoding'
> > ISO8859-1
> > 
> > $ export LANG=en_US.UTF-8
> > $ python -c 'import mercurial.encoding; print mercurial.encoding.encoding'
> > UTF8
> 
> Yeah, we've encountered such weirdness before with Macs. We've already
> got one workaround in encoding.py.
> 
> Patch applied, after fixing up whitespace damage from your mail client.

Indeed.  The culprit is leaving on the flowed text feature in Alpine.  
I've disabled it and also updated the wiki as a reminder.

http://mercurial.selenic.com/wiki/ContributingChanges


More information about the Mercurial-devel mailing list