>> Hans: Do you think it's feasible to alter process_opts() in such a way that if >> G_FILE_TEST_IS_REGULAR fails and g_get_charset() reports non-UTF8, > > we try to recode to UTF8 and run G_FILE_TEST_IS_REGULAR again? >I don't think this hack should be necessary. If I understood the g_option code >correctly, there is just some g_filename_to_utf8() missing.
g_filename_to_utf8() didn't really work out for me, while g_locale_to_utf8() worked - I'm using ShellExecuteW() in dia-win-remote() for the test > happens with filenames not represantable in the locale encoding, e.g. using > a Japanese filename on a German NT. I expect that this will result in some broken result e.g. in Windows Explorer that will "help" the user to understand that there is something wrong. However, the basic problem is understood. I haven't seen bug reports for pre-XP OSses in a while so let's keep fingers crossed that all OSses are more or less "Unicode"-ready. In case we receive any such reports in the future, we should simply advise to install the necessary font/language packs. Regards, Steffen _______________________________________________ dia-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
