Bug in description handling

Martijn Pieters mj at zopatista.com
Fri Aug 13 14:45:08 CDT 2010


On Fri, Aug 13, 2010 at 21:14, Martijn Pieters <mj at zopatista.com> wrote:
> I can look into porting http://bugs.python.org/issue6202 for use in
> Mercurial. In any case, getpreferredencoding has been fixed for Python
> 2.7, so this only needs to be backported for python 2.6 and earlier.

I've created a patch that simply re-uses the posix
getpreferredencoding code for python on mac before version 2.7, and
removes the setlocale call for the same platform.

All tests pass with the patch applied. hgdebuginstall output:

$ hg debuginstall
Checking encoding (UTF-8)...
Checking extensions...
Checking templates...
Checking patch...
Checking commit editor...
Checking username...
No problems detected

Download it from:
http://bitbucket.org/mjpieters/mercurial-crew-mq/src/tip/pending/getpreferredencoding.patch

-- 
Martijn Pieters
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getpreferrendencoding.diff
Type: application/octet-stream
Size: 2114 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100813/72267aba/attachment.obj>


More information about the Mercurial-devel mailing list