#1055 PyDev launcher sitecustomization.py should not set encoding

1.5.1
closed
debugger (210)
5
2010-02-08
2010-01-24
Mikko Ohtamaa
No

PyDev messes up run-time encoding when it tries to automatically encode everything going to Eclipse console. It calls setdefaultencoding() and automatically forces everything to UTF-8 instead of exceptions being raised.

For more information see http://blog.twinapex.fi/2010/01/24/aptana-studio-eclipse-pydev-default-unicode-encoding/

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2010-01-24

    What's the real problem you have with that? (messes run-time encoding is pretty vague)

    Note that If that's not done, printing any unicode to the console will raise an error (which was the source of that fix, so, going back and not having that support wouldn't be something acceptable -- do you know of some other way to do that? I believe sys.setdefaultencoding is the only Python API available for it).

    Note that you can set the console to any different encoding if you want (which would also be the encoding you have in runtime).

    Cheers,

    Fabio

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2010-01-24

    • status: open --> pending
     
    • status: pending --> closed
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).