[Numpy-discussion] f2py and pygtk on windows

Charles R Harris charlesr.harris@gmail....
Sat Mar 24 10:34:12 CDT 2012


On Sat, Mar 24, 2012 at 8:09 AM, Thomas Kluyver <takowl@gmail.com> wrote:

> On 24 March 2012 13:28, David Froger <david.froger@gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120324/a27d4030/attachment.html 


More information about the NumPy-Discussion mailing list