Thank you for the report. I committed a modified version of your change in svn 8433.
Eric
···
On 06/13/2010 08:23 AM, Гузий Саша wrote:
Hello,
I recently updated matplotlib using macports, and it broke my plotting
functions which plot date-value plots.
The reason was that my locale.getpreferredencoding() returned empty
string in
cbook.py.
changing the code to the following solved my problem
# On some systems, locale.getpreferredencoding returns None,
# which can break unicode; and the sage project reports that
# some systems have incorrect locale specifications, e.g.,
# an encoding instead of a valid locale name.