[PATCH stable] encoding: protect against non-ascii default encoding

Matt Mackall mpm at selenic.com
Mon Apr 23 11:46:17 CDT 2012


On Sun, 2012-04-22 at 21:34 -0400, Cesar Mena wrote:
> # HG changeset patch
> # User Cesar Mena <cesarmena at gmail.com>
> # Date 1335144472 14400
> # Branch stable
> # Node ID 8dfd20472015e6424a871c3c07bba19fc265b67a
> # Parent  cbf2ea2f5ca169d22e0729cb71a21b808574b90e
> encoding: protect against non-ascii default encoding
> 
> If the default python encoding was changed from ascii, the attempt to
> encode as ascii before lower() could throw a UnicodeEncodeError.
> Catch UnicodeError instead to prevent an unhandled exception.

Queued, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list