GNOME Bugzilla – Bug 402756
Can not open a file whose name is in non-ascii encoding
Last modified: 2007-06-07 01:10:37 UTC
Please describe the problem: file-roller fails to open files with non-ascii names. Steps to reproduce: 1. Open nautils, and double click one .tar.gz file whose name contain non-ascii characters; 2. An error message pop-up: can not open the file,this file does not exist; Actual results: Expected results: if the tar.gz file's name doese not contain non-ascii chatacters,double-click the file will open the file successfully. Does this happen every time? Yes. Other information: The attachment is the error message.
Created attachment 81573 [details] screen snapshot
Several bugs are reported on none UTF-8 locales: How to reproduce: Step1: prepared one Archive file with non-ASCII characters name Step2:Double click one it Result: One message popup, The file don't exist If you start 'Archive manager'app, and then click File->open->'The archive file', The archive can be opened. How to reproduce: Step1: prepare one archive file with non-ASCII characters name Step2:Double click on it Result: One message popups: The file doesn't exist If you start 'Archive manager'app, and then click File->open->'The archive file', The archive can be opened. How to reproduce: Step1: Open one Archive file with non-ASCII characters name Step2: Click on 'File->save as' Step3: Save as frame popup,but the non-ASCII characters name changed to garbage Result: Ahe 'save as 'frame ,the non-ASCII characters name changed to garbage How to reproduce: Step: 1. Click on new create Archive file icon, New create frame popuped 2. Input a archive file name with non-ASCII character 3. select 'archive type' for 'zip' Result : The archive name changed to garbage Step: 1. Click on new create Archive file icon, New create frame popuped 2. select 'archive type' for 'zip' 3. Input a archive file name with non-ASCII character 4. Double click on the new archive file Result:A error frame popuped, the new archive file name displaied garbage Result: File name displaied garbage I'm attaching the patch to fix all bugs.
Created attachment 82654 [details] [review] Patch for src/actions.c, src/file-utils.c, src/file-utils.h, src/main.c, src/window.c Attached the patch. G_OPTION_REMAINING is converted from the locale encoding to UTF-8 so applications need to convert the UTF-8 string to locale string. Also added get_filename_charset() to check the environment.
Takao, can you please do a patch for current svn ?
Created attachment 89478 [details] [review] Patch for src/actions.c, src/file-utils.c, src/main.c, src/fr-window.c I updated the patch for SVN HEAD. Could you review this?
the patch looks good, I've committed it to SVN now, thank you.
Thanks much for the integration.