GNOME Bugzilla – Bug 347372
[patch] nautilus location bar cannot extract samba multibyte URI
Last modified: 2006-08-09 11:13:46 UTC
Please describe the problem: In eel_format_uri_for_display_internal(), multibyte path names are extracted by gnome_vfs_get_local_path_from_uri() in the local path. But if users uses samba URI, the multibyte chars cannot be extracted by gnome_vfs_get_local_path_from_uri() because it's not a local path. At the result, nautilus location bar cannot show samba multibyte URIs. Steps to reproduce: 1. Configure a samba filesystem on UNIX. 2. Launch Nautilus Window on ja_JP.UTF-8. 3. Click [Windows Network] icon and open the samba filesystem 'smb:///$hostname'. 4. Open the folders which have the UTF-8 encoding filename. Actual results: The multibyte chars are not shown on the Nautilus location bar. Expected results: 'smb:///$hostname/$UTF-8_filename' is shown. Does this happen every time? always Other information: I'm attaching the patch & problem snapshot.
Created attachment 68845 [details] Problem URI
Created attachment 68846 [details] [review] patch for eel-2.14.1/eel/eel-vfs-extensions.c I'm attaching the patch.
Hello Takao, To make the patch rewieved quick I advice you to post your patch the nautilus list (nautilus-list@gnome.org), I think you need to suscribe to be able to post a mail. bye
That patch looks wrong. We're not supposed to unescape the string there. And this is not really related to gnome_vfs_get_local_path_from_uri(), since that is only used for file:// uris. The main problem is that URIs are really not utf8. If you want to have non-ascii in them you need to escape them. This is unfortunate. However, it is required, since if we tried to do anything automagic with the uri when displayed we'd have trouble with roundtrips in the entry. If the user pressed enter in the entry we'd get back a different uri than what we put in there.
Are there any possible ways to show multibyte chars for smb: protocol only? The problem is users expect MS Windows compatibilities when they access the filesystem via Nautilus. The wide aged people will use smb: protocol. The problem is Nautilus address bar only.