Re: Opening files that start with %
- From: jgotts linuxsavvy com
- To: Bernhard Herzog <bh intevation de>
- Cc: gnome-list gnome org, gnome-devel-list gnome org
- Subject: Re: Opening files that start with %
- Date: Thu, 25 Jul 2002 06:53:42 -0400
Technically speaking, yes, but since this bug is occurring in several
applications, wouldn't it be cleaner to add the appropriate URI fix-up code to
a library?
John
In message <6q3cu9foch fsf abnoba intevation de>, Bernhard Herzog writes:
>"chen.shengqi" <chen shengqi connet com tw> writes:
>
>> ----- Original Message -----
>> From: <jgotts linuxsavvy com>
>[...]
>> > In message <y5wn0so94yt fsf icon devel redhat com>, Havoc Pennington write
>s:
>> >
>> > >Shane OConnor - Sun Ireland <Shane Oconnor Sun COM> writes:
>> >
>> > >> It's just been noticed that any file that starts with the '%'
>> > >> character will not open in nautilus, gedit or netscape. As all the
>> > >> gconf xml files start with the '%' character I was wondering if this
>> > >> was a deliberate thing?
>> >
>> > >No, it's a bug.
>> >
>> > Looks like a bug in gnome-vfs:
>> >
>
>[rearranging a bit to retain the example]
>
>> > GnomeVFSResult result;
>> > GnomeVFSFileInfo *info;
>> >
>> > result = gnome_vfs_get_file_info("%gconf.xml", info,
>> > (GNOME_VFS_FILE_INFO_GET_MIME_TYPE | GNOME_VFS_FILE_INFO_FOLLOW_LINKS));
>> >
>> > fails. gnome_vfs_get_file_info() does two things:
>
>> I didnot tested it, but I think if you write "%gconf.xml" as
>> "\%gconf.xml" , maybe it can work, just put a '\' before '%'.
>
>Shuldn't that be "%25gconf.xml"? According to the docs
>gnome_vfs_get_file_info takes a URI and % is used for hex-escapes in a
>URI. So it's not a bug in gnome-vfs but in the applications that don't
>quote local filenames properly.
--
John GOTTS <jgotts linuxsavvy com> http://linuxsavvy.com/staff/jgotts
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]