Re: Bugs #570592 and #591302
- From: Steffen Macke <sdteffen gmail com>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Bugs #570592 and #591302
- Date: Tue, 17 Nov 2009 11:57:33 -0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]