On Sat, Mar 24, 2012 at 8:09 AM, Thomas Kluyver <[email protected]> wrote:
> On 24 March 2012 13:28, David Froger <[email protected]> wrote: > > I've had similar problem in the past (but on Gnu/Linux), which was solve > > to by setting the LC_ALL environnement variable to C. (never undersant > why). > > (with Bash: export LC_ALL=C) > > This rings a bell. I have a feeling importing pygtk can change the > Python default encoding (sys.getdefaultencoding()). That's never > normally changed, so Python 2 code can assume it's always ascii. I > guess pygtk sets the encoding from the system locale, so if it's set > to C, it will use ascii, and the problem won't appear. > > That's interesting. I've noticed several different encodings used in numpy, 'ascii', 'latin1', and utf8. Might be worth taking a closer look at those cases. Chuck
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
