After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732914 - g_file_new_for_commandline_arg does not allow local files which look like uri's
g_file_new_for_commandline_arg does not allow local files which look like uri's
Status: RESOLVED DUPLICATE of bug 676626
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-07-08 17:41 UTC by jessevdk@gmail.com
Modified: 2014-07-08 19:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jessevdk@gmail.com 2014-07-08 17:41:51 UTC
I happen to have a file which contains colons in the filename, specifically I have: namespace::A.xml. Unfortunately, namespace is being matched as an URI scheme by g_file_new_for_commandline_arg. This means that if I do 'gedit namespace::A.xml' on the commandline, gedit refuses to open the file. Could this be considered a bug? One possible fix for this would be to check if the parsed scheme is actually supported, and if not, fall back to assuming it's a local file path?
Comment 1 Allison Karlitskaya (desrt) 2014-07-08 19:18:34 UTC

*** This bug has been marked as a duplicate of bug 676626 ***