GNOME Bugzilla – Bug 107700
Creating a button on panel with link to filename in non-latin is impossible
Last modified: 2004-12-22 21:47:04 UTC
Creating of button on panel with link to non-latin filename causes 'Error while loading or saving configuration informarion' with 'Invalid UTF-8 sequence' detail message. Locale is non-UTF8, G_BROKEN_FILENAMES=1 is set.
Toshi: this sounds like one of the many similar issues you fixed
what's the exact steps to reproduce this? I cannot find how I do "creating of buttons on panel with a link to a filename".
Add to panel->launch button In dialog you shoud choose type "link". I think type can be "Application" or other to reproduce that error too, but I have no app with non-latin filename. Next press "Browse", choose non-latin filename and press OK - error message will appear. Sorry for possible non-correct names of panel menu entries - I retranslate them from Russian back to English :)
This looks like a gnome-desktop bug. File contents of launcher .desktop files are always encoded in UTF-8, hence when we g_spwan_*() with the string it has to be converted to filesystem's filename using g_filename_from_utf8(). Attaching a patch. Since the patch is against the primitive gnome-desktop function, other similar bugs, if any, would be fixed by this patch, so this should be carefully reviewed before commit Mark, will you please?
Created attachment 17069 [details] [review] convert .desktop file contents to filenames.
Toshi: the patch looks (and sounds) good to me. I know you'd like me to review it carefully, but on this issue I trust your judgement better than mine. If you're comfortable with it, please go ahead and commit ... Thanks.
Thanks, commit to both gnome-2-2 and HEAD.