getdefaultencoding - how to change this?



Hi,
I've searched the net but didn't find the information I need.
Using Python-2.7.1, I know, I can't modify defaultencoding at run time.
Python even ignores
export PYTHONIOENCODING=ISO8859-1

locale.getdefaultlocale()[1]
returns
'ISO8859-1'

still sys.stdout is using the ascii codec.
How can I recompile Python (itself) to change this to iso8859-1 ?
(My favourite editor cannot be told to use unicode.)

Many thanks for a hint,
Helmut.

.



Relevant Pages

  • Re: getdefaultencoding - how to change this?
    ... Python-2.7.1, I know, I can't modify defaultencoding at run time. ... How can I recompile Python ... My locale as root differed from my locale as non-root user. ...
    (comp.lang.python)
  • Re: UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP
    ... For string literals, with the "coding" declaration, Python will accept ... "coding" declaration to produce a Unicode object which unambiguously ... represents the sequence of characters - ie. something that can be ... > strings and/or gibberished characters in Tk GUI title? ...
    (comp.lang.python)
  • python-dev summary for 2005-07-01 to 2005-07-15
    ... we should use strings and Unicode like ... Python documentation. ... Contributing threads: ... previous summaries is available online. ...
    (comp.lang.python.announce)
  • Re: break unichr instead of fix ord?
    ... for having unichr and ord work only for a subset of unicode ... length-one string on wide Python builds. ... Should surrogate pairs be disallowed on narrow builds? ... every Python Unicode character represents exactly ...
    (comp.lang.python)
  • Re: break unichr instead of fix ord?
    ... length-one string on wide Python builds. ... one Unicode code point (i.e. Python Unicode ... Python's codecs will adopt ...
    (comp.lang.python)