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. > > try: > preferredencoding = locale.getpreferredencoding() > if preferredencoding.strip() == '': > raise ValueError > except ValueError: > preferredencoding = None > except ImportError: > preferredencoding = None > > sorry for disturbing you > -- > Huziy Oleksandr >
Thank you for the report. I committed a modified version of your change in svn 8433. Eric ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel