<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You could place code like that on sitecustomize.py<br>I think this should be fixed on Eclipse/pydev. If they replace
sys.stdout<br>with a different object - they should make sure it has the right behavior.<br>Same for IDLE if it's broken too.<br></blockquote></div><br>Thanks for the tip... I wasn't aware of sitecustomize.py (site.py
does call that just before removing setdefaultencoding() from sys, so I can still use sys.setdefaultencoding)... actually, setencoding() from site.py does have what I would like to execute:<br> if 0:<br> # Enable to support locale aware default string encodings.
<br> import locale<br> loc = locale.getdefaultlocale()<br> if loc[1]:<br> encoding = loc[1]<br><br>I just don't get why the code has that "if 0:" instead of getting it from some user-config (like env variable or parameters passed)...
<br><br>Anyways, thanks a lot... I think I can arrange in providing a sitecustomize.py from pydev with that structure.<br><br>Cheers,<br><br>Fabio<br>