At 09:25 -0700 on 06/29/2011, jjon wrote about Re: python encoding problem:

Then when bbedit spawns a python process, the python 'site' module
automatically calls sys.setdefaultencoding() and then after having set
the default encoding for the session (and this is the weird bit)
removes setdefaultencoding from the sys namespace.

Since I assume that the value lives for the duration of the invocation, the removal resets the environment to what it was before the invocation (so it is not a default for the next invocation). IOW: It is a one-time override that must be made on a per-invocation basis.

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to