2 Nov
2002
2 Nov
'02
9:59 p.m.
Tino Wildenhain writes:
I dont know why this code is in site.py:
encoding = "ascii" # Default value set by _PyUnicode_Init()
if 0: # Enable to support locale aware default string encodings. import locale loc = locale.getdefaultlocale() if loc[1]: encoding = loc[1]
if 0: # Enable to switch off string to Unicode coercion and implicit # Unicode to string conversion. encoding = "undefined"
if encoding != "ascii": sys.setdefaultencoding(encoding)
This implies modification of the installed code to change default behavior. I would consider this as bad. Why isnt a locales sensitive version the default? Good! That would be a sensible default!
Dieter