GNOME Bugzilla – Bug 548948
It crashes if the user's home directory contains non-UTF-8 characters.
Last modified: 2008-08-26 22:26:22 UTC
Please describe the problem: When a user's $HOME directory contains non-UTF-8 encoding characters, such as zh_CN.GBK, GNOME Commander can not be launched and core file is dumped. Steps to reproduce: 1. Login to GNOME with non-UTF-8 locale, such as zh_CN.GBK 2. create files with localized names under $HOME 3. Launch gnome-commander Actual results: Expected results: gnome-commander doesn't start up and core file is dumped. Does this happen every time? Yes. Other information: $ pstack core core 'core' of 17637: gnome-commander cc203510 strlen (8fd2028, 4) + 30 cc55d2cb g_utf8_collate_key_for_filename (8fd2028, 4) + 24b 0811b10b __1cUgnome_cmd_file_setup6FpnN_GnomeCmdFile_pnQGnomeVFSFileInfo_pnM_GnomeCmdDir__v_ (8f9d508, 8fb8ad8, 8300008) + 6b 08106853 __1cbBgnome_cmd_dir_new_from_info6FpnQGnomeVFSFileInfo_pnM_GnomeCmdDir__3_ (8fb8ad8, 8300008) + 193 08107155 __1cQcreate_file_list6FpnM_GnomeCmdDir_pnG_GList__3_ (8300008, 8fc9060) + 195 08107234 __1cMon_list_done6FpnM_GnomeCmdDir_pnG_GList_nOGnomeVFSResult__v_ (8300008, 8fc9060, 0) + 64 080d9657 __1cNblocking_list6FpnM_GnomeCmdDir__v_ (8300008) + b7 080d9483 __1cMdirlist_list6FpnM_GnomeCmdDir_i_v_ (8300008, 0) + 83 0810767a __1cbAgnome_cmd_dir_relist_files6FpnM_GnomeCmdDir_i_v_ (8300008, 0) + 8a 0810774c __1cYgnome_cmd_dir_list_files6FpnM_GnomeCmdDir_i_v_ (8300008, 0) + cc 08117c2e __1cbLgnome_cmd_file_selector_set_directory6FpnV_GnomeCmdFileSelector_pnM_GnomeCmdDir__v_ (8d58900, 8300008) + 24e 0811a2ea __1cOset_connection6FpnV_GnomeCmdFileSelector_pnM_GnomeCmdCon_pnM_GnomeCmdDir__v_ (8d58900, 8248090, 8300008) + 11a 081185f5 __1cbMgnome_cmd_file_selector_set_connection6FpnV_GnomeCmdFileSelector_pnM_GnomeCmdCon_pnM_GnomeCmdDir__v_ (8d58900, 8248090, 0) + 195 0812be63 __1cEinit6FpnQ_GnomeCmdMainWin__v_ (8d3e000, 8d3d3d8) + 8a3 cc5f9b67 g_type_create_instance (8d3c318) + 5af cc5e2d0b g_object_constructor (8d3c318, 3, 8d1d8a8) + 23 cc5e2333 g_object_newv (8d3c318, 0, 0) + 367 cc5e2cac g_object_new_valist (8d3c318, 0, 80470b8) + 388 cc5e1fc5 g_object_new (8d3c318, 0) + 61 ce2c3022 gtk_type_new (8d3c318) + 32 0812c001 __1cWgnome_cmd_main_win_new6F_pnK_GtkWidget__ (cebfc7dc, 82466b0, 81eeec8, 81f6438, 80471f4, 804711c) + 11 0814f919 main (1, 8047128, 8047130) + 199 080d8dea _start (1, 804725c, 0, 804726c, 8047285, 80472af) + 7a
Created attachment 117190 [details] [review] Patch for src/gnome-cmd-file.cc Added get_utf8() utility to resolve this problem.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.