[Zope3-dev] Re: str to unicode promotion test failures (with patch)

Osvaldo Santana osantana at gmail.com
Wed Oct 13 20:50:32 EDT 2004


On Wed, 13 Oct 2004 17:04:11 +0200, Martijn Faassen <faassen at infrae.com> wrote:
> Tres Seaver wrote:
> > I'll bet you have a 'sys.setdefaultencoding' in your Python's site.py;
> > try rerunning the test without it, and see if it fails.
> 
> If so, please note:
> 
> sys.setdefaultencoding is evil and should never be used under any
> circumstances.
> 
> Regards,
> 
> Martijn

Yes, I have. :/

My Linux distribution apply a patch to set my default encoding with
locale.getdefaultlocale()[1] (ISO8859-1).

Anyway, its probabily will cause problems with Zope in other Python
distributions no?

Thanks,
Osvaldo

-- 
Osvaldo Santana Neto (aCiDBaSe)
icq, url = (11287184, "http://www.pythonbrasil.com.br")


More information about the Zope3-dev mailing list