python3 - the hardest hello world ever ?

Helmut Jarausch jarausch at igpm.rwth-aachen.de
Thu Oct 16 10:10:22 CEST 2008


Martin v. Löwis wrote:
>> What defines me as latin1-user?
> 
> That your locale is based on Latin-1, e.g. because it is a German
> locale. How precisely that works depends on the operating system.
> 
>> So my system seems to be an ASCII system?
> 
> At least that's what Python determined. If Python couldn't have found
> out that you usually use Latin-1, your system is misconfigured. If
> Python could have found out, but failed to do so, it's a bug in Python.
> 

Many thanks, it works when setting the LANG environment variable.

Still, I wished it were possible call sys.setdefaultencoding
at the very beginning of a script.

Why isn't that possible?

Helmut.


-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



More information about the Python-list mailing list