Re: [Matplotlib-users] unicode filenames and MPL.

2008-03-27 Thread Michael Droettboom
Christopher Barker wrote: > Michael Droettboom wrote: > >> I think the real reason this wasn't done is that its tricky to do at the >> C level in a cross-platform way. At present it uses the regular POSIX >> fopen in C, which isn't really "Unicode aware". >> > > The actual error is from

Re: [Matplotlib-users] unicode filenames and MPL.

2008-03-27 Thread Christopher Barker
Michael Droettboom wrote: > I think the real reason this wasn't done is that its tricky to do at the > C level in a cross-platform way. At present it uses the regular POSIX > fopen in C, which isn't really "Unicode aware". The actual error is from trying to put the filename in a std::string, b

Re: [Matplotlib-users] unicode filenames and MPL.

2008-03-27 Thread Michael Droettboom
I think the real reason this wasn't done is that its tricky to do at the C level in a cross-platform way. At present it uses the regular POSIX fopen in C, which isn't really "Unicode aware". See the "Unicode filenames" section of the link below for some of the complications. Linux is particu

[Matplotlib-users] unicode filenames and MPL.

2008-03-26 Thread Christopher Barker
Hi all, I'm writing a little MPL embedded in wxPython app, and just ran into this: Traceback (most recent call last): ... ... "/matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg/matplotlib/backends/backend_agg.py", line 397, in print_png self.get_renderer()._renderer.write_png(filename, se