GNOME Bugzilla – Bug 313971
run dialog url encodes the domain name
Last modified: 2008-09-10 16:40:35 UTC
Please describe the problem: If I enter a url in the run dialog like http://www.dasörtliche.de and press run, my galeon tries to open http://www.das%C3%B6rtliche.de which doesn't work. Steps to reproduce: 1. Enter a URL with special characters in the domain name. 2. press run Actual results: The URL in the browser is broken. Expected results: Does this happen every time? Other information: This bug probably depends on bug 116046.
In fact, it's really bug 116046. There's nothing we can do on our side, AFAIK. I'm marking the bug as duplicate. *** This bug has been marked as a duplicate of 116046 ***
Stupid me. This is not the same bug. But it's a gnome-vfs bug anyway :-) <chpe> vuntz: problem in gnome-vfs-uri then, it's not idn-safe. I do recall some bug about that...
It's probably gnome_vfs_make_uri_from_input() that doesn't handle this.
Bug is still present, confirming.
Making it depend on the IDN support bug 116046.
From what I remember when looked into this, it doesn't depend on the IDN bug. The problem is in gnome-vfs in gnome_vfs_make_uri_from_input() which mangles the UTF-8 in the hostname. We don't require to recode the hostname to punycode when we can just pass the UTF-8 up to the handler (epiphany handles it just fine).
Looks like we're calling gnome_vfs_escape_high_chars in gnome_vfs_make_uri_from_input_internal for URIs. chpe: Isn't that the usual escaping people expect from URIs? Would you expect that GnomeVFS converts umlauts to vocal sequences ("ö"=>"oe")?
No, I'd expect it to either pass the UTF-8 hostname through (my preferred option, and easiest to do here), or encode it in punycode (IDN, bug 116046), but not under any circumstances to %-encode it, since that's not legal afaict.
-> libgnome, where gnome-open lives now.
*** Bug 501455 has been marked as a duplicate of this bug. ***
Does that mean just removing the call to gnome_vfs_make_uri_from_input_with_dirs() or replacing it with g_locale_to_utf8 or something like that?
I think maybe porting gnome-open to us gtk_show_uri and moving it to libgnomeui could be a solution? Or just retire it in favour of xdg-open?
This works as expected using gvfs-open instead of gnome-open, so perhaps just close as dup of bug 530752 ?
It works with gnome-open too now that it was ported to GIO. I still agree that gnome-open -> gvfs-open makes sense. *** This bug has been marked as a duplicate of 530752 ***