Re: Unescaping uris



Op dinsdag 12-09-2006 om 17:14 uur [tijdzone +0200], schreef Alexander
Larsson:
> > gnomevfs.unescape_string('file:///%E3%83%95.txt', '')
> > -> 'file:///%E3%83%95.txt'
> > 
> > gnomevfs.unescape_string('sftp:///%E3%83%95.txt', '')
> > -> 'sftp:///%E3%83%95.txt'
> 
> This looks like a bug in the python wrappers. The C functions return
> "file:///フ.txt" and "sftp:///フ.txt";.

Well, here it doesn't :( I tried it in C and it still doesn't properly
unescape the %XX sequences when I use gnome_vfs_format_uri_for_display.
I'm using ubuntu and have gnomevfs 2.16.0-0ubuntu1. Is this a bug in the
latest gnomevfs?

I think I understand the differences now, thanks for explaining them to
me. What I want to do is display file uris properly in gedit snippets
(substituting environmental variables like GEDIT_FILENAME and
GEDIT_BASENAME). I think that what I need to use is
format_uri_for_display, only problem is that at the moment it's is not
working properly for non file schemes.


-- 
Jesse van den Kieboom

Visit: http://www.icecrew.nl




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]