self-hosting repo available
zindar at gmail.com
Mon Apr 11 15:49:41 BST 2005
On Apr 11, 2005 3:37 PM, Fredrik Lundh <fredrik at pythonware.com> wrote:
> Lele Gaifax wrote:
> > As said, this depends on the system setup for Python. You didn't
> > mention which distro you're using, but you should be able to locate
> > either an /etc/python/site.py or an equivalent somewhere under the
> > /usr/lib/python2.3/ tree.
> > It should contain a call to sys.setdefaultencoding(). Debian does it
> > this way:
> > encoding = "ascii" # Default value set by _PyUnicode_Init()
> > if 1: ## <------- THIS is 0 by default
> > # Enable to support locale aware default string encodings.
> > import locale
> > loc = locale.getdefaultlocale()
> > if loc:
> > encoding = loc
> DO NOT CHANGE THE DEFAULT ENCODING!!!
Ok, I will not put this in the ubuntu bug database then :)
More information about the bazaar