self-hosting repo available

Andrew Bennetts andrew at canonical.com
Mon Apr 11 11:12:06 BST 2005


On Mon, Apr 11, 2005 at 11:45:37AM +0200, Erik Bågfors wrote:
[...]
> 
> I'm on ubuntu and your first "if 1:" is "if 0:" I consider this a bug
> since hoary is UTF8 per default.
> 
> I'll see if there is a bug open on this.

According to
http://mail.python.org/pipermail/python-dev/2004-August/048496.html,
sys.getdefaultencoding() should always return 'ascii'.

AFAIK, the right fix is to always explicitly convert bytes (i.e. the str
type) to unicode, e.g. by someval.decode(locale.getpreferredencoding()).

-Andrew.





More information about the bazaar mailing list