User-Agent: Mozilla/5.0 (X11; U; Linux i686; chrome://global/locale/intl.properties; rv:1.8.0.8) Gecko/20061109 KateOS SeaMonkey/1.0.6 Build Identifier: exo-desktop-item-edit segfaults when trying to edit launcher, but only when using pl_PL locale. In other locales (i haven't tested all) it works fine. Reproducible: Always Steps to Reproduce: 1.run exo-desktop-item-edit in pl_PL locale 2. 3. Actual Results: (exo-desktop-item-edit:29244): GLib-CRITICAL **: g_utf8_casefold: assertion `str != NULL' failed Naruszenie ochrony pamięci (segfault in Polish)
Dunno. Have you asked the polish translator?
(In reply to comment #1) > Dunno. Have you asked the polish translator? > No, becouse libexo .po file looks good and is well encoded, so it can't be his fault. exo-desktop-item-edit dialog is showed for a second and then it segfaults.
I've found the problem. Segfault occurs when at least one .desktop file in XDG_DATA_DIR/applications is not encoded in UTF-8. Maybe exo-desktop-item-edit should skip such a files?
It looks to me like the problem could be in g_keyfile_*, so it could be a glib bug. Damian, could you attach a desktop file that shows the problem?
Created attachment 896 Prepared .desktop file that causes segfault.
(In reply to comment #4) > It looks to me like the problem could be in g_keyfile_*, so it could be a glib > bug. Damian, could you attach a desktop file that shows the problem? > I've prepared the .desktop file encoded in iso8859-2. I know it contains obsolete item (Encoding=LegacyMixed), but imho it shouldn't cause segfaults :)
(In reply to comment #6) > (In reply to comment #4) > > It looks to me like the problem could be in g_keyfile_*, so it could be a glib > > bug. Damian, could you attach a desktop file that shows the problem? > > > > I've prepared the .desktop file encoded in iso8859-2. I know it contains > obsolete item (Encoding=LegacyMixed), but imho it shouldn't cause segfaults :) > Hmm, for me it simply refuses to read the file. This is at least better than crashing... Damian, could you perhaps get a backtrace from the crash with gdb? Oh, and what is your glib version? That might make a difference.
(In reply to comment #7) > Damian, could you perhaps get a backtrace from the crash with gdb? In this moment i don't have binaries with debug symbols, so i need to recompile them first. > Oh, and what is your glib version? That might make a difference. > 2.12.3
same problem here, but with de_DE.utf8 locale. I figured out, that it depends on the name-field: deleting it, I get no segfaults, until I try to type in this field. Im using: OS: gentoo-linux exo 0.3.2 glib 2.12.9
It's a bug in glib. Build exo with --enable-debug=no or --enable-debug=minimum to disable the crash.
sorry, but this does not work for me. I still get an segfault. I tried out a newer version of glib (ver. 2.12.11), but without success.
File a bug report to GLib.