Problem (and possible fix) with gcc 4.0.2

Executing the following:

import pylab, numarray

N = 100000

pylab.plot( numarray(N) )

pylab.show()

results in a “Memory Error”.

I compiled using gcc 4.0.2 with numarray 1.4.1 and matplotlib 0.85.

I think I tracked down the error to the routine “FT2Font::set_text()” in

“ft2font.cpp”.

If the line:

std::string stdtext;

is changed to

std::string stdtest = “”;

then it seems to work fine.

Dave