bulia byak wrote:
Update on the open dialog crash: fixed by upgrading to newest libs (thanks Ishmal).
However I run into another problem: Cyrillic filenames crash on open in Win98. I traced this down to
fp = std::fopen(filename, how.c_str());
in io/sys.cpp, line 169. This fails, so fp == NULL.
However, Inkscape::IO::file_test on the same filename works, using g_file_test. So I thought that if I replace std::fopen with g_fopen in the above, it may work. Unfortunately this fails at linking:
libinkscape.a(sys.o):sys.cpp:(.text+0x2a7d): undefined reference to `g_fopen(char const*, char const*)'
Ishmal: is this function missing in your libs? Can you add it?
Bulia:
'muntyan' on IRC helped me out on this. glib/gstdio.h has a bug, where someone forgot to put G_BEGIN_DECLS and G_END_DECLS (macros for extern "C") at the top and bottom of the file. It is already fixed in Glib's CVS, and I will update the bundle tomorrow. But you can hack the file yourself to get the link to work. It is just C++ mangling the name.
I hope that this works. It can relieve a lot of the filename hackery we have needed to do recently.
Bob